aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
authorn-aleha <nick_aleha@myway.com>2014-04-16 13:14:36 +0300
committern-aleha <nick_aleha@myway.com>2014-04-23 22:43:20 +0300
commit5a91399dac9eed844c79c10324034db531432589 (patch)
tree138bb0137f6cce7ce0bbebde3f8492f6c67a6c90 /phpBB/install/install_install.php
parente9807e17412299d7157d6be82777961a66cada90 (diff)
downloadforums-5a91399dac9eed844c79c10324034db531432589.tar
forums-5a91399dac9eed844c79c10324034db531432589.tar.gz
forums-5a91399dac9eed844c79c10324034db531432589.tar.bz2
forums-5a91399dac9eed844c79c10324034db531432589.tar.xz
forums-5a91399dac9eed844c79c10324034db531432589.zip
[ticket/12186] Move PM reports below post reports while installing
In mcp, move PM reports below post reports while installing. PHPBB3-12186
Diffstat (limited to 'phpBB/install/install_install.php')
-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 0a100ae71b..78f3f00eda 100644
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1624,6 +1624,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 = '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 = '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 = '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...