mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Efficiency enhancement for upgrade and upgrade_schema by running global tasks one time rather than for each domain.
This commit is contained in:
@@ -24,16 +24,19 @@
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
//use the module class to get the list of modules from the db and add any missing modules
|
||||
require_once "includes/classes/switch_modules.php";
|
||||
$mod = new switch_modules;
|
||||
$mod->db = $db;
|
||||
$mod->dir = $_SESSION['switch']['mod']['dir'];
|
||||
$mod->get_modules();
|
||||
$mod->synch();
|
||||
$msg = $mod->msg;
|
||||
|
||||
// synchronize the modules
|
||||
save_module_xml();
|
||||
//use the module class to get the list of modules from the db and add any missing modules
|
||||
if ($domains_processed == 1) {
|
||||
require_once "includes/classes/switch_modules.php";
|
||||
$mod = new switch_modules;
|
||||
$mod->db = $db;
|
||||
$mod->dir = $_SESSION['switch']['mod']['dir'];
|
||||
$mod->get_modules();
|
||||
$mod->synch();
|
||||
$msg = $mod->msg;
|
||||
|
||||
//synchronize the modules
|
||||
save_module_xml();
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user