mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/13077] Move extension module to the top of the Customise tab
This commit is contained in:
commit
01e200d49a
1 changed files with 13 additions and 0 deletions
|
@ -1654,6 +1654,19 @@ class install_install extends module
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$_module->move_module_by($row, 'move_up', 5);
|
$_module->move_module_by($row, 'move_up', 5);
|
||||||
|
|
||||||
|
// Move extension management module 1 up...
|
||||||
|
$sql = 'SELECT *
|
||||||
|
FROM ' . MODULES_TABLE . "
|
||||||
|
WHERE module_langname = 'ACP_EXTENSION_MANAGEMENT'
|
||||||
|
AND module_class = 'acp'
|
||||||
|
AND module_mode = ''
|
||||||
|
AND module_basename = ''";
|
||||||
|
$result = $db->sql_query($sql);
|
||||||
|
$row = $db->sql_fetchrow($result);
|
||||||
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
|
$_module->move_module_by($row, 'move_up', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($module_class == 'mcp')
|
if ($module_class == 'mcp')
|
||||||
|
|
Loading…
Add table
Reference in a new issue