aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-10-14 20:10:36 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-12 11:50:55 +0200
commit3d9b5aed46ac1c3aec4b3a068b837169748a429c (patch)
tree9916ccd8e09dc17e6b8fe09e6cb78beaefb04895
parent57146ccdd124073d70002b25d8e02868b8201b0a (diff)
downloadforums-3d9b5aed46ac1c3aec4b3a068b837169748a429c.tar
forums-3d9b5aed46ac1c3aec4b3a068b837169748a429c.tar.gz
forums-3d9b5aed46ac1c3aec4b3a068b837169748a429c.tar.bz2
forums-3d9b5aed46ac1c3aec4b3a068b837169748a429c.tar.xz
forums-3d9b5aed46ac1c3aec4b3a068b837169748a429c.zip
[ticket/11917] Move OAuth Module to the bottom while installing
PHPBB3-11917
-rw-r--r--phpBB/install/install_install.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index c749b54f40..977ce8562c 100644
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1662,6 +1662,18 @@ class install_install extends module
$db->sql_freeresult($result);
$_module->move_module_by($row, 'move_down', 4);
+
+ // Move OAuth module 5 down...
+ $sql = 'SELECT *
+ FROM ' . MODULES_TABLE . "
+ WHERE module_basename = 'ucp_auth_link'
+ AND module_class = 'ucp'
+ AND module_mode = 'auth_link'";
+ $result = $db->sql_query($sql);
+ $row = $db->sql_fetchrow($result);
+ $db->sql_freeresult($result);
+
+ $_module->move_module_by($row, 'move_down', 5);
}
// And now for the special ones