change the App constructor

This commit is contained in:
redmatrix 2016-03-31 20:24:30 -07:00
parent 0cda431456
commit 44283dbbbb
3 changed files with 3 additions and 6 deletions

View File

@ -784,7 +784,7 @@ class App {
/**
* App constructor.
*/
function __construct() {
function init() {
// we'll reset this after we read our config file
date_default_timezone_set('UTC');

View File

@ -12,10 +12,7 @@ function cli_startup() {
$a = new miniApp;
}
if(is_null($app)) {
$app = new App;
}
App::init();
if(is_null($db)) {
@include(".htconfig.php");

View File

@ -19,7 +19,7 @@ if(file_exists('.htsite.php'))
$a = new miniApp;
$app = new App;
App::init();
/*
* Load the configuration file which contains our DB credentials.