mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16640] Show MCP link in menu
PHPBB3-16640
This commit is contained in:
parent
5a55891d06
commit
ec3a2fa063
1 changed files with 6 additions and 6 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue