Zeile 299 | Zeile 299 |
---|
$forum = get_forum($fid); if($mod_data['isgroup']) {
|
$forum = get_forum($fid); if($mod_data['isgroup']) {
|
$mod = $mybb->usergroups[$mod_data['id']];
| $mod = $groupscache[$mod_data['id']];
|
} else {
| } else {
|
Zeile 447 | Zeile 447 |
---|
$result = $db->fetch_array($query); $fid = $result['fid']; $gid = $result['gid'];
|
$result = $db->fetch_array($query); $fid = $result['fid']; $gid = $result['gid'];
|
| $forum = get_forum($fid);
|
}
$field_list = array();
| }
$field_list = array();
|
Zeile 1043 | Zeile 1044 |
---|
$form_container->end(); echo "</div>";
|
$form_container->end(); echo "</div>";
|
$query = $db->simple_select("usergroups", "*", "", array("order_dir" => "name"));
| $query = $db->simple_select("usergroups", "*", "", array("order" => "name"));
|
while($usergroup = $db->fetch_array($query)) { $usergroups[$usergroup['gid']] = $usergroup;
| while($usergroup = $db->fetch_array($query)) { $usergroups[$usergroup['gid']] = $usergroup;
|
Zeile 1438 | Zeile 1439 |
---|
$forum_data['title'] = $forum_data['name']; }
|
$forum_data['title'] = $forum_data['name']; }
|
$query = $db->simple_select("usergroups", "*", "", array("order_dir" => "name"));
| $query = $db->simple_select("usergroups", "*", "", array("order" => "name"));
|
while($usergroup = $db->fetch_array($query)) { $usergroups[$usergroup['gid']] = $usergroup;
| while($usergroup = $db->fetch_array($query)) { $usergroups[$usergroup['gid']] = $usergroup;
|
Zeile 1860 | Zeile 1861 |
---|
// Log admin action if ($isgroup) {
|
// Log admin action if ($isgroup) {
|
log_admin_action($mod['id'], $mod['title'], $forum['fid'], $forum['name']);
| log_admin_action($mid, $mod['title'], $forum['fid'], $forum['name']);
|
} else {
|
} else {
|
log_admin_action($mod['id'], $mod['username'], $forum['fid'], $forum['name']);
| log_admin_action($mid, $mod['username'], $forum['fid'], $forum['name']);
|
} flash_message($lang->success_moderator_deleted, 'success');
| } flash_message($lang->success_moderator_deleted, 'success');
|
Zeile 2149 | Zeile 2150 |
---|
$plugins->run_hooks("admin_forum_management_start_moderators_commit"); // Log admin action
|
$plugins->run_hooks("admin_forum_management_start_moderators_commit"); // Log admin action
|
log_admin_action('addmod', $new_mod['fid'], $newmod['name'], $fid, $forum['name']);
| log_admin_action('addmod', $mid, $newmod['name'], $fid, $forum['name']);
|
flash_message($lang->success_moderator_added, 'success'); admin_redirect("index.php?module=forum-management&action=editmod&mid={$mid}");
| flash_message($lang->success_moderator_added, 'success'); admin_redirect("index.php?module=forum-management&action=editmod&mid={$mid}");
|
Zeile 2265 | Zeile 2266 |
---|
echo "</div>\n"; $form->end();
|
echo "</div>\n"; $form->end();
|
$query = $db->simple_select("usergroups", "*", "", array("order_dir" => "name"));
| $query = $db->simple_select("usergroups", "*", "", array("order" => "name"));
|
while($usergroup = $db->fetch_array($query)) { $usergroups[$usergroup['gid']] = $usergroup;
| while($usergroup = $db->fetch_array($query)) { $usergroups[$usergroup['gid']] = $usergroup;
|