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. * App constructor.
*/ */
function __construct() { function init() {
// we'll reset this after we read our config file // we'll reset this after we read our config file
date_default_timezone_set('UTC'); date_default_timezone_set('UTC');

View File

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

View File

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