mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12006] Add extension enabled check token to module auth
PHPBB3-12006
This commit is contained in:
parent
7740ab5dc3
commit
05cf83aca7
1 changed files with 2 additions and 1 deletions
|
@ -334,7 +334,7 @@ class p_master
|
|||
static function module_auth($module_auth, $forum_id)
|
||||
{
|
||||
global $auth, $config;
|
||||
global $request;
|
||||
global $request, $phpbb_extension_manager;
|
||||
|
||||
$module_auth = trim($module_auth);
|
||||
|
||||
|
@ -358,6 +358,7 @@ class p_master
|
|||
'aclf_([a-z0-9_]+)' => '(int) $auth->acl_getf_global(\'\\1\')',
|
||||
'cfg_([a-z0-9_]+)' => '(int) $config[\'\\1\']',
|
||||
'request_([a-zA-Z0-9_]+)' => '$request->variable(\'\\1\', false)',
|
||||
'ext_([a-zA-Z0-9_/]+)' => 'array_key_exists(\'\\1\', $phpbb_extension_manager->all_enabled())',
|
||||
);
|
||||
|
||||
$tokens = $match[0];
|
||||
|
|
Loading…
Add table
Reference in a new issue