Minor improvements (#1675)

* Minor improvements

* Update

* Updated

* Update

* Updated

* Update viewtopic.tpl

* Update functions.php

* Update functions.php

* Update functions.php

* Update functions.php

* Update functions.php

* Update functions.php

* Update functions.php

* Update functions.php

* Update functions.php

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-11-10 00:02:43 +07:00 committed by GitHub
commit e1f03e64dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 85 additions and 76 deletions

View file

@ -42,13 +42,14 @@ switch ($mode) {
$link = '<a href="' . $href . '" class="' . $class . '" target="_blank">' . htmlCHR($row['group_name']) . '</a>';
$html[] = $link;
} else {
// скрытая группа и сам юзер не является ее членом
// hidden group and the user himself is not a member of it
if ($row['group_type'] == GROUP_HIDDEN && !$row['can_view']) {
continue;
}
if ($row['group_moderator'] == $user->id) {
// the user himself is the moderator of this group
$class .= ' selfMod';
$href .= "&amp;" . POST_USERS_URL . "=$user_id"; // сам юзер модератор этой группы
$href .= "&amp;" . POST_USERS_URL . "=$user_id";
}
$link = '<a href="' . $href . '" class="' . $class . '" target="_blank">' . htmlCHR($row['group_name']) . '</a>';
$html[] = $link;