mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-20 10:18:54 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12186] Move PM reports below post reports while installing for ascraeus [ticket/12186] Move PM reports below post reports while installing
This commit is contained in:
commit
be2b80e82b
2 changed files with 40 additions and 1 deletions
|
@ -19,7 +19,7 @@ class mcp_pm_reports_info
|
||||||
'title' => 'MCP_PM_REPORTS',
|
'title' => 'MCP_PM_REPORTS',
|
||||||
'version' => '1.0.0',
|
'version' => '1.0.0',
|
||||||
'modes' => array(
|
'modes' => array(
|
||||||
'pm_reports' => array('title' => 'MCP_PM_REPORTS_OPEN', 'auth' => 'aclf_m_report', 'cat' => array('MCP_REPORTS')),
|
'pm_reports' => array('title' => 'MCP_PM_REPORTS_OPEN', 'auth' => 'aclf_m_report', 'cat' => array('MCP_REPORTS')),
|
||||||
'pm_reports_closed' => array('title' => 'MCP_PM_REPORTS_CLOSED', 'auth' => 'aclf_m_report', 'cat' => array('MCP_REPORTS')),
|
'pm_reports_closed' => array('title' => 'MCP_PM_REPORTS_CLOSED', 'auth' => 'aclf_m_report', 'cat' => array('MCP_REPORTS')),
|
||||||
'pm_report_details' => array('title' => 'MCP_PM_REPORT_DETAILS', 'auth' => 'aclf_m_report', 'cat' => array('MCP_REPORTS')),
|
'pm_report_details' => array('title' => 'MCP_PM_REPORT_DETAILS', 'auth' => 'aclf_m_report', 'cat' => array('MCP_REPORTS')),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1647,6 +1647,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 = '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')
|
if ($module_class == 'ucp')
|
||||||
{
|
{
|
||||||
// Move attachment module 4 down...
|
// Move attachment module 4 down...
|
||||||
|
|
Loading…
Add table
Reference in a new issue