aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-26 17:51:59 -0700
committerredmatrix <git@macgirvin.com>2016-05-26 17:51:59 -0700
commit1bce285eca9bf53044f3949a55fc434db2671b3a (patch)
treec9d1a7d071de4bf4058152825483df798e316fc7
parent096fdfc61b5381bd3f7918a7c5f6004461354f32 (diff)
downloadvolse-hubzilla-1bce285eca9bf53044f3949a55fc434db2671b3a.tar.gz
volse-hubzilla-1bce285eca9bf53044f3949a55fc434db2671b3a.tar.bz2
volse-hubzilla-1bce285eca9bf53044f3949a55fc434db2671b3a.zip
don't need quite so many backslashes
-rwxr-xr-xboot.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/boot.php b/boot.php
index b0ef5b3b9..1c3938cb4 100755
--- a/boot.php
+++ b/boot.php
@@ -584,7 +584,7 @@ function sys_boot() {
// our central App object
- \App::init();
+ App::init();
/*
* Load the configuration file which contains our DB credentials.
@@ -594,10 +594,10 @@ function sys_boot() {
// miniApp is a conversion object from old style .htconfig.php files
- $a = new \miniApp;
+ $a = new miniApp;
- \App::$install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false : true);
+ App::$install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false : true);
@include('.htconfig.php');
@@ -605,13 +605,13 @@ function sys_boot() {
define('UNO', 0);
if(array_key_exists('default_timezone',get_defined_vars())) {
- \App::$config['system']['timezone'] = $default_timezone;
+ App::$config['system']['timezone'] = $default_timezone;
}
$a->convert();
- \App::$timezone = ((\App::$config['system']['timezone']) ? \App::$config['system']['timezone'] : 'UTC');
- date_default_timezone_set(\App::$timezone);
+ App::$timezone = ((App::$config['system']['timezone']) ? App::$config['system']['timezone'] : 'UTC');
+ date_default_timezone_set(App::$timezone);
/*
@@ -620,9 +620,9 @@ function sys_boot() {
require_once('include/dba/dba_driver.php');
- if(! \App::$install) {
- \DBA::dba_factory($db_host, $db_port, $db_user, $db_pass, $db_data, $db_type, \App::$install);
- if(! \DBA::$dba->connected) {
+ if(! App::$install) {
+ DBA::dba_factory($db_host, $db_port, $db_user, $db_pass, $db_data, $db_type, App::$install);
+ if(! DBA::$dba->connected) {
system_unavailable();
}
@@ -636,8 +636,8 @@ function sys_boot() {
load_config('system');
load_config('feature');
- \App::$session = new \Zotlabs\Web\Session();
- \App::$session->init();
+ App::$session = new Zotlabs\Web\Session();
+ App::$session->init();
load_hooks();
call_hooks('init_1');
}