Version 2.1.0

This commit is contained in:
dmzx
2018-08-02 11:34:39 +02:00
parent cd0f139598
commit 006a4e404e
140 changed files with 2695 additions and 2699 deletions

View File

@@ -15,21 +15,21 @@ class acp_mchat_info
{
function module()
{
return array(
return [
'filename' => '\dmzx\mchat\acp\acp_mchat_module',
'title' => 'ACP_CAT_MCHAT',
'modes' => array(
'globalsettings' => array(
'modes' => [
'globalsettings' => [
'title' => 'ACP_MCHAT_GLOBALSETTINGS',
'auth' => 'ext_dmzx/mchat && acl_a_mchat',
'cat' => array('ACP_CAT_MCHAT'),
),
'globalusersettings' => array(
'cat' => ['ACP_CAT_MCHAT'],
],
'globalusersettings' => [
'title' => 'ACP_MCHAT_GLOBALUSERSETTINGS',
'auth' => 'ext_dmzx/mchat && acl_a_mchat',
'cat' => array('ACP_CAT_MCHAT'),
),
),
);
'cat' => ['ACP_CAT_MCHAT'],
],
],
];
}
}

View File

@@ -19,10 +19,11 @@ class acp_mchat_module
public function main($id, $mode)
{
global $phpbb_container, $user;
global $phpbb_container;
// Add the ACP lang file
$user->add_lang_ext('dmzx/mchat', array('mchat_acp', 'mchat_ucp'));
$language = $phpbb_container->get('language');
$language->add_lang(['mchat_acp', 'mchat_ucp'], 'dmzx/mchat');
// Set template
$this->tpl_name = 'acp_mchat_' . strtolower($mode);