Enhance upgrade show during install (#2676)

the install uses upgrade_domains.php, update it to use well known
varibles to show output
This commit is contained in:
Mafoo
2017-06-11 15:49:39 +01:00
committed by FusionPBX
parent a93b7983ea
commit d2d9443450
2 changed files with 4 additions and 3 deletions

View File

@@ -32,7 +32,7 @@
set_include_path($document_root);
require_once "resources/require.php";
$_SERVER["DOCUMENT_ROOT"] = $document_root;
$format = 'text'; //html, text
$display_type = 'text'; //html, text
}
else if (!$included) {
include "root.php";
@@ -45,13 +45,14 @@
echo "access denied";
exit;
}
$format = 'html'; //html, text
$display_type = 'html'; //html, text
}
//run all app_defaults.php files
require_once "resources/classes/config.php";
require_once "resources/classes/domains.php";
$domain = new domains;
$domain->display_type = $display_type;
$domain->upgrade();
?>