change the App constructor
This commit is contained in:
parent
0cda431456
commit
44283dbbbb
2
boot.php
2
boot.php
@ -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');
|
||||||
|
|
||||||
|
@ -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");
|
||||||
|
Reference in New Issue
Block a user