Version 2.1.0
This commit is contained in:
@@ -15,19 +15,16 @@ class ucp_mchat_info
|
||||
{
|
||||
function module()
|
||||
{
|
||||
global $config;
|
||||
|
||||
return array(
|
||||
return [
|
||||
'filename' => '\dmzx\mchat\ucp\ucp_mchat_module',
|
||||
'title' => 'UCP_MCHAT_CONFIG',
|
||||
'version' => $config['mchat_version'],
|
||||
'modes' => array(
|
||||
'configuration' => array(
|
||||
'modes' => [
|
||||
'configuration' => [
|
||||
'title' => 'UCP_MCHAT_CONFIG',
|
||||
'auth' => 'ext_dmzx/mchat && acl_u_mchat_view',
|
||||
'cat' => array('UCP_MCHAT_CONFIG'),
|
||||
),
|
||||
),
|
||||
);
|
||||
'cat' => ['UCP_MCHAT_CONFIG'],
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,10 +19,11 @@ class ucp_mchat_module
|
||||
|
||||
public function main($id, $mode)
|
||||
{
|
||||
global $phpbb_container, $user;
|
||||
global $phpbb_container;
|
||||
|
||||
// Add the UCP lang file
|
||||
$user->add_lang_ext('dmzx/mchat', 'mchat_ucp');
|
||||
$language = $phpbb_container->get('language');
|
||||
$language->add_lang('mchat_ucp', 'dmzx/mchat');
|
||||
|
||||
// Set template
|
||||
$this->tpl_name = 'ucp_mchat';
|
||||
|
||||
Reference in New Issue
Block a user