mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/12186] Move PM reports below post reports while installing
In mcp, move PM reports below post reports while installing. PHPBB3-12186
This commit is contained in:
@@ -1624,6 +1624,45 @@ class install_install extends module
|
|||||||
$_module->move_module_by($row, 'move_up', 5);
|
$_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')
|
if ($module_class == 'ucp')
|
||||||
{
|
{
|
||||||
// Move attachment module 4 down...
|
// Move attachment module 4 down...
|
||||||
|
Reference in New Issue
Block a user