From b793ccba9de0c2682eb0e1a436f498676c09f177 Mon Sep 17 00:00:00 2001 From: Matthew Vale Date: Thu, 26 Nov 2015 15:57:32 +0000 Subject: [PATCH] changed install order --- core/install/install_first_time.php | 6 +++--- core/install/resources/classes/install_fusionpbx.php | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/install/install_first_time.php b/core/install/install_first_time.php index 30452fcf8c..e31be9e062 100644 --- a/core/install/install_first_time.php +++ b/core/install/install_first_time.php @@ -221,7 +221,7 @@ if(!$install_step) { $install_step = 'select_language'; } echo " \n"; echo "\n"; }elseif($install_step == 'detect_config'){ - if(!($event_host == 'localhost' || $event_host == '::1' || $event_host == '127.0.0.1')){ + if(!($event_host == '' || $event_host == 'localhost' || $event_host == '::1' || $event_host == '127.0.0.1' )){ echo "

Warning you have choosen a value other than localhost for event_host, this is unsoported at present

\n"; } include "resources/page_parts/install_event_socket.php"; @@ -263,7 +263,6 @@ if(!$install_step) { $install_step = 'select_language'; } //if($_SERVER['HTTPS']) { $protocol = 'https'; } //echo ""; require_once "core/install/resources/classes/detect_switch.php"; - trigger_error("D:> using $event_host, $event_port, $event_password\n",E_USER_WARNING); $switch_detect = new detect_switch($event_host, $event_port, $event_password); $detect_ok = true; try { @@ -309,8 +308,9 @@ if(!$install_step) { $install_step = 'select_language'; } $switch = new install_switch($domain_name, $domain_uuid, $switch_detect); //$switch->debug = true; //$fusionPBX->debug = true; - $switch->install(); $fusionPBX->install(); + $switch->install(); + $fusionPBX->app_defaults(); }catch(Exception $e){ echo "\n"; echo "

Failed to install
" . $e->getMessage() . "

\n"; diff --git a/core/install/resources/classes/install_fusionpbx.php b/core/install/resources/classes/install_fusionpbx.php index 6d62060939..9c70cb7b2c 100644 --- a/core/install/resources/classes/install_fusionpbx.php +++ b/core/install/resources/classes/install_fusionpbx.php @@ -94,7 +94,6 @@ include "root.php"; $this->create_superuser(); require "resources/require.php"; $this->create_menus(); - $this->app_defaults(); } protected function create_config_php() {