From 7d20c6e3e8eb90f7280e4076414fe193c69eaf41 Mon Sep 17 00:00:00 2001 From: David King Date: Sat, 19 May 2012 22:02:31 -0400 Subject: [PATCH] [feature/moderator-needed] Add function call in page_header(), a few comment changes PHPBB3-10857 --- phpBB/includes/functions.php | 7 +++++++ phpBB/includes/functions_display.php | 4 ++-- phpBB/styles/prosilver/template/viewforum_body.html | 2 +- phpBB/styles/prosilver/template/viewtopic_body.html | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 28f06abbc19..633fe2d0e0a 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -4802,6 +4802,13 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0 'A_COOKIE_SETTINGS' => addslashes('; path=' . $config['cookie_path'] . ((!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain']) . ((!$config['cookie_secure']) ? '' : '; secure')), )); + // Determine the number of items requiring moderator attention + if (!function_exists('phpbb_mcp_quick_info')) + { + include("{$phpbb_root_path}includes/functions_display.$phpEx"); + } + phpbb_mcp_quick_info(); + $vars = array('page_title', 'display_online_list', 'item_id', 'item'); extract($phpbb_dispatcher->trigger_event('core.page_header', compact($vars))); diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 77df620d8e8..a0c3340311b 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -1416,7 +1416,7 @@ function phpbb_mcp_quick_info() } } - // Don't forget PMs + // Don't forget reported PMs if ($auth->acl_getf_global('m_')) { $reported_pms = 0; @@ -1435,7 +1435,7 @@ function phpbb_mcp_quick_info() $cache->put('_reported_pms', $reported_pms, 300); } - // Dump to the template again + // Dump to the template if ($reported_pms) { $template->assign_vars(array( diff --git a/phpBB/styles/prosilver/template/viewforum_body.html b/phpBB/styles/prosilver/template/viewforum_body.html index abbf53fdc7b..798aa7b2ce5 100644 --- a/phpBB/styles/prosilver/template/viewforum_body.html +++ b/phpBB/styles/prosilver/template/viewforum_body.html @@ -1,5 +1,5 @@ -

{L_MCP}{TOTAL_MODERATOR_REPORTS}{TOTAL_MODERATOR_POSTS}{TOTAL_MODERATOR_TOPICS}{TOTAL_MODERATOR_PMS} ]

+

{L_MCP} | {TOTAL_MODERATOR_REPORTS} | {TOTAL_MODERATOR_POSTS} | {TOTAL_MODERATOR_TOPICS} | {TOTAL_MODERATOR_PMS} ]

{FORUM_NAME}

diff --git a/phpBB/styles/prosilver/template/viewtopic_body.html b/phpBB/styles/prosilver/template/viewtopic_body.html index fc5bac73ab8..292dfd43306 100644 --- a/phpBB/styles/prosilver/template/viewtopic_body.html +++ b/phpBB/styles/prosilver/template/viewtopic_body.html @@ -1,5 +1,5 @@ -

{L_MCP}{TOTAL_MODERATOR_REPORTS}{TOTAL_MODERATOR_POSTS}{TOTAL_MODERATOR_TOPICS}{TOTAL_MODERATOR_PMS} ]

+

{L_MCP} | {TOTAL_MODERATOR_REPORTS} | {TOTAL_MODERATOR_POSTS} | {TOTAL_MODERATOR_TOPICS} | {TOTAL_MODERATOR_PMS} ]

{TOPIC_TITLE}

{FORUM_DESC}