From ec3a2fa0630ec42c75a14392b2bf6f0e5398376b Mon Sep 17 00:00:00 2001 From: "Tseng, Oliver" Date: Mon, 23 Nov 2020 23:35:10 -0500 Subject: [PATCH] [ticket/16640] Show MCP link in menu PHPBB3-16640 --- phpBB/mcp.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/phpBB/mcp.php b/phpBB/mcp.php index a330bc65a5..582c8ed10b 100644 --- a/phpBB/mcp.php +++ b/phpBB/mcp.php @@ -333,12 +333,6 @@ $template->assign_block_vars('navlinks', array( 'U_BREADCRUMB' => append_sid("{$phpbb_root_path}mcp.$phpEx"), )); -// Load and execute the relevant module -$module->load_active(); - -// Assign data to the template engine for the list of modules -$module->assign_tpl_vars(append_sid("{$phpbb_root_path}mcp.$phpEx")); - // Generate urls for letting the moderation control panel being accessed in different modes $template->assign_vars(array( 'U_MCP' => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main'), @@ -347,5 +341,11 @@ $template->assign_vars(array( 'U_MCP_POST' => ($forum_id && $topic_id && $post_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=post_details&t=$topic_id&p=$post_id") : '', )); +// Load and execute the relevant module +$module->load_active(); + +// Assign data to the template engine for the list of modules +$module->assign_tpl_vars(append_sid("{$phpbb_root_path}mcp.$phpEx")); + // Generate the page, do not display/query online list $module->display($module->get_page_title());