mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Fix a couple of issues in mcp_main
git-svn-id: file:///svn/phpbb/trunk@5938 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4ca6f06df1
commit
86f5226025
2 changed files with 4 additions and 2 deletions
|
@ -20,10 +20,10 @@ class mcp_main_info
|
||||||
'title' => 'MCP_MAIN',
|
'title' => 'MCP_MAIN',
|
||||||
'version' => '1.0.0',
|
'version' => '1.0.0',
|
||||||
'modes' => array(
|
'modes' => array(
|
||||||
'forum_view' => array('title' => 'MCP_MAIN_FORUM_VIEW', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_MAIN')),
|
|
||||||
'front' => array('title' => 'MCP_MAIN_FRONT', 'auth' => 'acl_m_', 'cat' => array('MCP_MAIN')),
|
'front' => array('title' => 'MCP_MAIN_FRONT', 'auth' => 'acl_m_', 'cat' => array('MCP_MAIN')),
|
||||||
'post_details' => array('title' => 'MCP_MAIN_POST_DETAILS', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_MAIN')),
|
'forum_view' => array('title' => 'MCP_MAIN_FORUM_VIEW', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_MAIN')),
|
||||||
'topic_view' => array('title' => 'MCP_MAIN_TOPIC_VIEW', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_MAIN')),
|
'topic_view' => array('title' => 'MCP_MAIN_TOPIC_VIEW', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_MAIN')),
|
||||||
|
'post_details' => array('title' => 'MCP_MAIN_POST_DETAILS', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_MAIN')),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,6 +130,8 @@ class mcp_main
|
||||||
case 'front':
|
case 'front':
|
||||||
include($phpbb_root_path . 'includes/mcp/mcp_front.' . $phpEx);
|
include($phpbb_root_path . 'includes/mcp/mcp_front.' . $phpEx);
|
||||||
|
|
||||||
|
$user->add_lang('acp/common');
|
||||||
|
|
||||||
mcp_front_view($id, $mode, $action);
|
mcp_front_view($id, $mode, $action);
|
||||||
|
|
||||||
$this->tpl_name = 'mcp_front';
|
$this->tpl_name = 'mcp_front';
|
||||||
|
|
Loading…
Add table
Reference in a new issue