Version 1.0.0-RC2

This commit is contained in:
dmzx
2016-03-06 16:06:56 +01:00
parent fdde6ee2b2
commit 7fc464ff17
92 changed files with 2909 additions and 1845 deletions

View File

@@ -3,7 +3,8 @@
/**
*
* @package phpBB Extension - mChat
* @copyright (c) 2015 dmzx - http://www.dmzx-web.net
* @copyright (c) 2016 dmzx - http://www.dmzx-web.net
* @copyright (c) 2016 kasimi
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
@@ -19,21 +20,14 @@ class acp_mchat_module
global $phpbb_container, $user;
// Add the ACP lang file
$user->add_lang_ext('dmzx/mchat', 'info_acp_mchat');
$user->add_lang_ext('dmzx/mchat', 'mchat_acp');
// Load a template from adm/style for our ACP page
// Set template
$this->tpl_name = 'acp_mchat';
$this->page_title = 'MCHAT_ACP_TITLE';
// Set the page title for our ACP page
$this->page_title = 'MCHAT_TITLE';
// Get an instance of the admin controller
$admin_controller = $phpbb_container->get('dmzx.mchat.admin.controller');
// Make the $u_action url available in the admin controller
$admin_controller->set_page_url($this->u_action);
// Load the display settings handle in the admin controller
$admin_controller->display_options();
// 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);
}
}