Start using the module order.

This commit is contained in:
markjcrane
2016-05-26 10:31:59 -06:00
parent 71525c26b0
commit 4c4a1bd15e
2 changed files with 51 additions and 44 deletions

View File

@@ -391,7 +391,9 @@ function save_module_xml() {
$xml .= "<configuration name=\"modules.conf\" description=\"Modules\">\n";
$xml .= " <modules>\n";
$sql = "select * from v_modules order by module_name='mod_commands' OR module_category = 'Languages' OR module_category = 'Loggers' DESC, module_category ";
$sql = "select * from v_modules ";
$sql .= "order by module_order ASC ";
$sql .= "module_category ASC";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
$prev_module_cat = '';