From ace13c86a5898635e146eb3fdb663392ec7d115f Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Wed, 9 Nov 2005 20:36:04 +0000 Subject: [PATCH] A couple of initial changes for the new module system with the mcp (further changes are needed elsewhere for these to actually be useful....) git-svn-id: file:///svn/phpbb/trunk@5298 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/mcp/mcp_main.php | 19 +++++++++++++------ phpBB/includes/mcp/mcp_queue.php | 15 +++++++++++---- .../styles/subSilver/template/mcp_header.html | 17 ++++++++--------- 3 files changed, 32 insertions(+), 19 deletions(-) diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index 6a6309d713..0c74d60d0f 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -13,10 +13,17 @@ * mcp_main * Handling mcp actions */ -class mcp_main extends module +class mcp_main { - function mcp_main($id, $mode, $url) + var $p_master; + + function mcp_main(&$p_master) + { + $this->p_master = &$p_master; + } + + function main($id, $mode) { global $auth, $db, $user, $template; global $config, $phpbb_root_path, $phpEx, $SID; @@ -131,7 +138,7 @@ class mcp_main extends module mcp_front_view($id, $mode, $action, $url); - $this->display($user->lang['MCP'], 'mcp_front.html'); + $this->tpl_name = 'mcp_front'; break; case 'forum_view': @@ -153,7 +160,7 @@ class mcp_main extends module mcp_forum_view($id, $mode, $action, $url, $forum_info); - $this->display($user->lang['MCP'], 'mcp_forum.html'); + $this->tpl_name = 'mcp_forum'; break; case 'topic_view': @@ -161,7 +168,7 @@ class mcp_main extends module mcp_topic_view($id, $mode, $action, $url); - $this->display($user->lang['MCP'], 'mcp_topic.html'); + $this->tpl_name = 'mcp_topic'; break; case 'post_details': @@ -169,7 +176,7 @@ class mcp_main extends module mcp_post_details($id, $mode, $action, $url); - $this->display($user->lang['MCP'], 'mcp_post.html'); + $this->tpl_name = 'mcp_post'; break; default: diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 1f50e3456b..881c19b255 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -13,10 +13,17 @@ * mcp_queue * Handling the moderation queue */ -class mcp_queue extends module +class mcp_queue { - function mcp_queue($id, $mode, $url) + var $p_master; + + function mcp_main(&$p_master) + { + $this->p_master = &$p_master; + } + + function main($id, $mode) { global $auth, $db, $user, $template; global $config, $phpbb_root_path, $phpEx, $SID; @@ -122,7 +129,7 @@ class mcp_queue extends module 'POST_ID' => $post_info['post_id']) ); - $this->display($user->lang['MCP_QUEUE'], 'mcp_post.html'); + $this->tpl_name = 'mcp_post'; break; @@ -278,7 +285,7 @@ class mcp_queue extends module 'S_FORUM_OPTIONS' => $forum_options) ); - $this->display($user->lang['MCP_QUEUE'], 'mcp_queue.html'); + $this->tpl_name = 'mcp_queue'; break; } } diff --git a/phpBB/styles/subSilver/template/mcp_header.html b/phpBB/styles/subSilver/template/mcp_header.html index adc1ccd419..0d85855b54 100644 --- a/phpBB/styles/subSilver/template/mcp_header.html +++ b/phpBB/styles/subSilver/template/mcp_header.html @@ -40,23 +40,22 @@ function marklist(form_name, status) {L_OPTIONS} - + - - {mcp_section.L_TITLE} + + {l_block1.L_TITLE} - - {mcp_section.L_TITLE} + {l_block1.L_TITLE} - +