mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
[feature/events] Fix ledges in ACP and apply coding guidelines
PHPBB3-9550
This commit is contained in:
parent
643081d56c
commit
b966551e6b
3 changed files with 6 additions and 6 deletions
|
@ -27,7 +27,7 @@ class acp_profile
|
||||||
|
|
||||||
function main($id, $mode)
|
function main($id, $mode)
|
||||||
{
|
{
|
||||||
global $config, $db, $user, $auth, $template, $cache;
|
global $config, $db, $user, $auth, $template, $cache, $phpbb_dispatcher;
|
||||||
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix;
|
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix;
|
||||||
global $request;
|
global $request;
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class acp_users
|
||||||
|
|
||||||
function main($id, $mode)
|
function main($id, $mode)
|
||||||
{
|
{
|
||||||
global $config, $db, $user, $auth, $template, $cache;
|
global $config, $db, $user, $auth, $template, $cache, $phpbb_dispatcher;
|
||||||
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix, $file_uploads;
|
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix, $file_uploads;
|
||||||
|
|
||||||
$user->add_lang(array('posting', 'ucp', 'acp/users'));
|
$user->add_lang(array('posting', 'ucp', 'acp/users'));
|
||||||
|
|
|
@ -17,9 +17,9 @@ class acp_modules_info
|
||||||
global $phpbb_dispatcher;
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
$modules = array(
|
$modules = array(
|
||||||
'acp' => array('title' => 'ACP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
'acp' => array('title' => 'ACP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
||||||
'ucp' => array('title' => 'UCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
'ucp' => array('title' => 'UCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
||||||
'mcp' => array('title' => 'MCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
'mcp' => array('title' => 'MCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
||||||
),
|
),
|
||||||
|
|
||||||
$vars = array('modules');
|
$vars = array('modules');
|
||||||
|
@ -31,7 +31,7 @@ class acp_modules_info
|
||||||
'filename' => 'acp_modules',
|
'filename' => 'acp_modules',
|
||||||
'title' => 'ACP_MODULE_MANAGEMENT',
|
'title' => 'ACP_MODULE_MANAGEMENT',
|
||||||
'version' => '1.0.0',
|
'version' => '1.0.0',
|
||||||
'modes' => $modules
|
'modes' => $modules,
|
||||||
);
|
);
|
||||||
|
|
||||||
return $data
|
return $data
|
||||||
|
|
Loading…
Add table
Reference in a new issue