aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-29 21:29:18 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-29 21:29:18 +0200
commit1ba6a45a787d6fa864e1d3ba3bfdd272d73e105a (patch)
treeb3dabd2a77ae2b5000da19242eb579a89c6b620e /phpBB/install
parent417a0d0ea62c29ad616e75bcbf132a9017c9cfd2 (diff)
parentac8ce42a1297815c0991949ee8340fa682433cc1 (diff)
downloadforums-1ba6a45a787d6fa864e1d3ba3bfdd272d73e105a.tar
forums-1ba6a45a787d6fa864e1d3ba3bfdd272d73e105a.tar.gz
forums-1ba6a45a787d6fa864e1d3ba3bfdd272d73e105a.tar.bz2
forums-1ba6a45a787d6fa864e1d3ba3bfdd272d73e105a.tar.xz
forums-1ba6a45a787d6fa864e1d3ba3bfdd272d73e105a.zip
Merge pull request #2362 from n-aleha/ticket/12186a
[ticket/12186] Move PM reports below post reports while installing for ascraeus * n-aleha/ticket/12186a: [ticket/12186] Move PM reports below post reports while installing for ascraeus [ticket/12186] Move PM reports below post reports while installing
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/install_install.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index b345808df7..191be59258 100644
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1647,6 +1647,45 @@ class install_install extends module
$_module->move_module_by($row, 'move_up', 5);
}
+ if ($module_class == 'mcp')
+ {
+ // Move pm report details module 3 down...
+ $sql = 'SELECT *
+ FROM ' . MODULES_TABLE . "
+ WHERE module_basename = 'mcp_pm_reports'
+ AND module_class = 'mcp'
+ AND module_mode = 'pm_report_details'";
+ $result = $db->sql_query($sql);
+ $row = $db->sql_fetchrow($result);
+ $db->sql_freeresult($result);
+
+ $_module->move_module_by($row, 'move_down', 3);
+
+ // Move closed pm reports module 3 down...
+ $sql = 'SELECT *
+ FROM ' . MODULES_TABLE . "
+ WHERE module_basename = 'mcp_pm_reports'
+ AND module_class = 'mcp'
+ AND module_mode = 'pm_reports_closed'";
+ $result = $db->sql_query($sql);
+ $row = $db->sql_fetchrow($result);
+ $db->sql_freeresult($result);
+
+ $_module->move_module_by($row, 'move_down', 3);
+
+ // Move open pm reports module 3 down...
+ $sql = 'SELECT *
+ FROM ' . MODULES_TABLE . "
+ WHERE module_basename = 'mcp_pm_reports'
+ AND module_class = 'mcp'
+ AND module_mode = 'pm_reports'";
+ $result = $db->sql_query($sql);
+ $row = $db->sql_fetchrow($result);
+ $db->sql_freeresult($result);
+
+ $_module->move_module_by($row, 'move_down', 3);
+ }
+
if ($module_class == 'ucp')
{
// Move attachment module 4 down...