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,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'],
],
],
];
}
}

View File

@@ -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';