mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
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:
parent
c5b3d63221
commit
e1f03e64dd
16 changed files with 85 additions and 76 deletions
|
@ -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 .= "&" . POST_USERS_URL . "=$user_id"; // сам юзер модератор этой группы
|
||||
$href .= "&" . POST_USERS_URL . "=$user_id";
|
||||
}
|
||||
$link = '<a href="' . $href . '" class="' . $class . '" target="_blank">' . htmlCHR($row['group_name']) . '</a>';
|
||||
$html[] = $link;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue