reorganised upgrade routine to make more sense

This commit is contained in:
Matthew Vale
2015-12-02 14:32:49 +00:00
parent 3f6fdc1df4
commit b9b05f757c
3 changed files with 23 additions and 6 deletions

View File

@@ -91,8 +91,13 @@ include "root.php";
$this->write_progress("\tRunning requires");
require "resources/require.php";
$this->create_menus();
$this->app_defaults();
$this->write_progress("Install complete for FusionPBX");
}
function upgrade() {
$this->app_defaults();
}
protected function create_config_php() {
$this->write_progress("\tCreating " . $this->config_php);
@@ -1021,7 +1026,7 @@ include "root.php";
}
}
public function app_defaults() {
protected function app_defaults() {
$this->write_progress("\tRunning app_defaults");
//set needed session settings