1.0.0.rc1 update
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @package phpBB Extension - mChat
|
* @package phpBB Extension - mChat
|
||||||
@@ -20,7 +21,7 @@ class acp_mchat_info
|
|||||||
'configuration' => array(
|
'configuration' => array(
|
||||||
'title' => 'ACP_MCHAT_CONFIG',
|
'title' => 'ACP_MCHAT_CONFIG',
|
||||||
'auth' => 'ext_dmzx/mchat && acl_a_mchat',
|
'auth' => 'ext_dmzx/mchat && acl_a_mchat',
|
||||||
'cat' => array('ACP_CAT_MCHAT')
|
'cat' => array('ACP_CAT_MCHAT'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @package phpBB Extension - mChat
|
* @package phpBB Extension - mChat
|
||||||
@@ -15,31 +16,24 @@ class acp_mchat_module
|
|||||||
|
|
||||||
public function main($id, $mode)
|
public function main($id, $mode)
|
||||||
{
|
{
|
||||||
global $phpbb_container, $request, $user;
|
global $phpbb_container, $user;
|
||||||
|
|
||||||
// Get an instance of the admin controller
|
|
||||||
$admin_controller = $phpbb_container->get('dmzx.mchat.admin.controller');
|
|
||||||
|
|
||||||
// Requests
|
|
||||||
$action = $request->variable('action', '');
|
|
||||||
if ($request->is_set_post('add'))
|
|
||||||
{
|
|
||||||
$action = 'add';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add the ACP lang file
|
// Add the ACP lang file
|
||||||
$user->add_lang_ext('dmzx/mchat', 'info_acp_mchat');
|
$user->add_lang_ext('dmzx/mchat', 'info_acp_mchat');
|
||||||
|
|
||||||
// Load the display settings handle in the admin controller
|
|
||||||
$admin_controller->display_options();
|
|
||||||
|
|
||||||
// Load a template from adm/style for our ACP page
|
// Load a template from adm/style for our ACP page
|
||||||
$this->tpl_name = 'acp_mchat';
|
$this->tpl_name = 'acp_mchat';
|
||||||
|
|
||||||
// Set the page title for our ACP page
|
// Set the page title for our ACP page
|
||||||
$this->page_title = 'MCHAT_TITLE';
|
$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
|
// Make the $u_action url available in the admin controller
|
||||||
$admin_controller->set_page_url($this->u_action);
|
$admin_controller->set_page_url($this->u_action);
|
||||||
|
|
||||||
|
// Load the display settings handle in the admin controller
|
||||||
|
$admin_controller->display_options();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user