Version 2.0.0-RC3
This commit is contained in:
@@ -19,8 +19,13 @@ class acp_mchat_info
|
||||
'filename' => '\dmzx\mchat\acp\acp_mchat_module',
|
||||
'title' => 'ACP_CAT_MCHAT',
|
||||
'modes' => array(
|
||||
'configuration' => array(
|
||||
'title' => 'ACP_MCHAT_CONFIG',
|
||||
'globalsettings' => array(
|
||||
'title' => 'ACP_MCHAT_GLOBALSETTINGS',
|
||||
'auth' => 'ext_dmzx/mchat && acl_a_mchat',
|
||||
'cat' => array('ACP_CAT_MCHAT'),
|
||||
),
|
||||
'globalusersettings' => array(
|
||||
'title' => 'ACP_MCHAT_GLOBALUSERSETTINGS',
|
||||
'auth' => 'ext_dmzx/mchat && acl_a_mchat',
|
||||
'cat' => array('ACP_CAT_MCHAT'),
|
||||
),
|
||||
|
||||
@@ -20,14 +20,14 @@ class acp_mchat_module
|
||||
global $phpbb_container, $user;
|
||||
|
||||
// Add the ACP lang file
|
||||
$user->add_lang_ext('dmzx/mchat', 'mchat_acp');
|
||||
$user->add_lang_ext('dmzx/mchat', array('mchat_acp', 'mchat_ucp'));
|
||||
|
||||
// Set template
|
||||
$this->tpl_name = 'acp_mchat';
|
||||
$this->page_title = 'MCHAT_ACP_TITLE';
|
||||
$this->tpl_name = 'acp_mchat_' . strtolower($mode);
|
||||
$this->page_title = 'MCHAT_ACP_' . strtoupper($mode) . '_TITLE';
|
||||
|
||||
// Get an instance of the ACP controller and display the options
|
||||
$controller = $phpbb_container->get('dmzx.mchat.acp.controller');
|
||||
$controller->display_options($this->u_action);
|
||||
$controller->$mode($this->u_action);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user