Move domain upgrade into the domain class and upgrade_schema into the schema class

This commit is contained in:
Mark Crane
2014-07-15 05:46:15 +00:00
parent 03fd11fa36
commit f85f1bca5d
6 changed files with 158 additions and 648 deletions
+5 -3
View File
@@ -3100,9 +3100,11 @@ if (!function_exists('save_switch_xml')) {
save_dialplan_xml();
}
if (is_readable($_SESSION['switch']['extensions']['dir'])) {
require_once PROJECT_PATH."app/extensions/resources/classes/extension.php";
$extension = new extension;
$extension->xml();
if (file_exists(PROJECT_PATH."/app/extensions/resources/classes/extension.php")) {
require_once PROJECT_PATH."app/extensions/resources/classes/extension.php";
$extension = new extension;
$extension->xml();
}
}
if (is_readable($_SESSION['switch']['conf']['dir'])) {
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/settings/app_config.php")) {