Fix. Use correct database for Call Center while FS load. (#1597)

Problem that `mod_commands` may load after than `mod_callcenter` and there no function `global_getvar`
So current code just create database with name `INVALID COMMAND!.db`.
This commit is contained in:
Alexey Melnichuk
2016-05-13 17:03:48 +03:00
committed by FusionPBX
parent edfe01b0c5
commit 6df1dae2a9
2 changed files with 12 additions and 9 deletions

View File

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