diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2005-11-09 20:36:04 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2005-11-09 20:36:04 +0000 |
commit | ace13c86a5898635e146eb3fdb663392ec7d115f (patch) | |
tree | 12533ff816ac360d1a8cab90b73365253d1ad52b /phpBB/includes/mcp/mcp_main.php | |
parent | 81ab6d83b8f67147d5f4b76df5cea47d5a79c936 (diff) | |
download | forums-ace13c86a5898635e146eb3fdb663392ec7d115f.tar forums-ace13c86a5898635e146eb3fdb663392ec7d115f.tar.gz forums-ace13c86a5898635e146eb3fdb663392ec7d115f.tar.bz2 forums-ace13c86a5898635e146eb3fdb663392ec7d115f.tar.xz forums-ace13c86a5898635e146eb3fdb663392ec7d115f.zip |
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
Diffstat (limited to 'phpBB/includes/mcp/mcp_main.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_main.php | 19 |
1 files changed, 13 insertions, 6 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: |