Assign page titles within the mcp

git-svn-id: file:///svn/phpbb/trunk@6008 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2006-06-04 15:01:35 +00:00
parent 6ba50e34d6
commit f3499d1251
7 changed files with 14 additions and 6 deletions

View file

@ -53,6 +53,7 @@ class mcp_logs
$sort_dir = request_var('sd', 'd');
$this->tpl_name = 'mcp_logs';
$this->page_title = 'MCP_LOGS';
$forum_id = $topic_id = 0;
switch ($mode)

View file

@ -135,6 +135,7 @@ class mcp_main
mcp_front_view($id, $mode, $action);
$this->tpl_name = 'mcp_front';
$this->page_title = 'MCP_MAIN';
break;
case 'forum_view':
@ -157,6 +158,7 @@ class mcp_main
mcp_forum_view($id, $mode, $action, $forum_info);
$this->tpl_name = 'mcp_forum';
$this->page_title = 'MCP_MAIN_FORUM_VIEW';
break;
case 'topic_view':
@ -165,6 +167,7 @@ class mcp_main
mcp_topic_view($id, $mode, $action);
$this->tpl_name = 'mcp_topic';
$this->page_title = 'MCP_MAIN_TOPIC_VIEW';
break;
case 'post_details':
@ -180,6 +183,7 @@ class mcp_main
{
$this->tpl_name = 'mcp_post';
}
$this->page_title = 'MCP_MAIN_POST_DETAILS';
break;
default:

View file

@ -35,6 +35,8 @@ class mcp_notes
list($action, ) = each($action);
}
$this->page_title = 'MCP_NOTES';
switch ($mode)
{
case 'front':

View file

@ -33,6 +33,8 @@ class mcp_queue
$forum_id = request_var('f', 0);
$start = request_var('start', 0);
$this->page_title = 'MCP_QUEUE';
switch ($action)
{
case 'approve':

View file

@ -33,6 +33,8 @@ class mcp_reports
$forum_id = request_var('f', 0);
$start = request_var('start', 0);
$this->page_title = 'MCP_REPORTS';
switch ($action)
{
case 'close':

View file

@ -35,6 +35,8 @@ class mcp_warn
list($action, ) = each($action);
}
$this->page_title = 'MCP_WARN';
switch ($mode)
{
case 'front':

View file

@ -214,13 +214,8 @@ $module->load_active();
$module->assign_tpl_vars("mcp.$phpEx$SID");
// Generate the page
page_header($user->lang['MCP_MAIN']);
$module->display($module->get_page_title());
$template->set_filenames(array(
'body' => $module->get_tpl_name())
);
page_footer();
/**
* Functions used to generate additional URL paramters