Skip to content

Commit

Permalink
Fix the list of categories and forums not showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Nov 7, 2014
1 parent 8a58c10 commit a863ae4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions moderate.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,14 @@
$action = 'single';
}

$page_title = array(luna_htmlspecialchars($luna_config['o_board_title']), $lang['Moderate']);
define('FORUM_ACTIVE_PAGE', 'moderate');
require load_page('header.php');

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$luna_user['g_id'].') WHERE (fp.post_topics IS NULL OR fp.post_topics=1) ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
if ($db->num_rows($result) < 2)
message($lang['Nowhere to move']);

$page_title = array(luna_htmlspecialchars($luna_config['o_board_title']), $lang['Moderate']);
define('FORUM_ACTIVE_PAGE', 'moderate');
require load_page('header.php');

require get_view_path('moderate-move_topics.tpl.php');
}
Expand Down

0 comments on commit a863ae4

Please sign in to comment.