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.
|
||||
*/
|
||||
function __construct() {
|
||||
function init() {
|
||||
// we'll reset this after we read our config file
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
|
@ -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");
|
||||
|
Reference in New Issue
Block a user