aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2014-04-24 11:33:00 +0200
committerNils Adermann <naderman@naderman.de>2014-04-24 11:33:00 +0200
commit6e85b2acc76ef44c10c331d4a9d6f20ccb663dce (patch)
tree73a188a26e723bd88d5805b80e0269916c0e6fe6 /phpBB/includes
parent5b6a6753992ae03e7bd36e7530a1a4e0e14fb57b (diff)
parent3d9b5aed46ac1c3aec4b3a068b837169748a429c (diff)
downloadforums-6e85b2acc76ef44c10c331d4a9d6f20ccb663dce.tar
forums-6e85b2acc76ef44c10c331d4a9d6f20ccb663dce.tar.gz
forums-6e85b2acc76ef44c10c331d4a9d6f20ccb663dce.tar.bz2
forums-6e85b2acc76ef44c10c331d4a9d6f20ccb663dce.tar.xz
forums-6e85b2acc76ef44c10c331d4a9d6f20ccb663dce.zip
Merge remote-tracking branch 'github-nickvergessen/ticket/11917' into develop-ascraeus
* github-nickvergessen/ticket/11917: [ticket/11917] Move OAuth Module to the bottom while installing [ticket/11917] Hide OAuth UCP Module when OAuth is not the selected backend Conflicts: phpBB/install/install_install.php
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_module.php1
-rw-r--r--phpBB/includes/ucp/info/ucp_auth_link.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index be066de0f0..98b2848c19 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -398,6 +398,7 @@ class p_master
'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())',
+ 'authmethod_([a-z0-9_\\\\]+)' => '($config[\'auth_method\'] === \'\\1\')',
);
/**
diff --git a/phpBB/includes/ucp/info/ucp_auth_link.php b/phpBB/includes/ucp/info/ucp_auth_link.php
index ee88b15ea8..3a34232d28 100644
--- a/phpBB/includes/ucp/info/ucp_auth_link.php
+++ b/phpBB/includes/ucp/info/ucp_auth_link.php
@@ -19,7 +19,7 @@ class ucp_auth_link_info
'title' => 'UCP_AUTH_LINK',
'version' => '1.0.0',
'modes' => array(
- 'auth_link' => array('title' => 'UCP_AUTH_LINK_MANAGE', 'auth' => '', 'cat' => array('UCP_PROFILE')),
+ 'auth_link' => array('title' => 'UCP_AUTH_LINK_MANAGE', 'auth' => 'authmethod_oauth', 'cat' => array('UCP_PROFILE')),
),
);
}