diff --git a/core/install/install_first_time.php b/core/install/install_first_time.php index dcc7e04ade..1b629de24b 100644 --- a/core/install/install_first_time.php +++ b/core/install/install_first_time.php @@ -309,6 +309,8 @@ if(!$install_step) { $install_step = 'select_language'; } $switch = new install_switch($global_settings); //$switch->debug = true; //$system->debug = true; + $switch->echo_progress = true; + $system->echo_progress = true; $system->install_phase_1(); $switch->install_phase_1(); $system->install_phase_2(); diff --git a/core/install/resources/classes/install_fusionpbx.php b/core/install/resources/classes/install_fusionpbx.php index 28bed4cd17..41d28ca92c 100644 --- a/core/install/resources/classes/install_fusionpbx.php +++ b/core/install/resources/classes/install_fusionpbx.php @@ -35,6 +35,7 @@ include "root.php"; protected $dbh; public $debug = false; + public $echo_progress = false; public $install_language = 'en-us'; public $admin_username; @@ -71,7 +72,9 @@ include "root.php"; } function write_progress($message) { - echo "$message\n"; + if($this->echo_progress){ + echo "$message\n"; + } } function install_phase_1() { diff --git a/core/install/resources/classes/install_switch.php b/core/install/resources/classes/install_switch.php index bdf9a2c48b..3fb3950cb6 100644 --- a/core/install/resources/classes/install_switch.php +++ b/core/install/resources/classes/install_switch.php @@ -33,6 +33,7 @@ include "root.php"; protected $dbh; public $debug = false; + public $echo_progress = false; function __construct($global_settings) { if(is_null($global_settings)){ @@ -63,7 +64,9 @@ include "root.php"; } function write_progress($message) { - echo "$message\n"; + if($this->echo_progress){ + echo "$message\n"; + } } //$options '-n' --no-clobber