From 9abd95fad3784a10fc48bc40f9b8a75d7d74edda Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 31 Mar 2016 16:06:03 -0700 Subject: static App --- util/typo.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/typo.php') diff --git a/util/typo.php b/util/typo.php index 2e25c8306..11e51d89c 100644 --- a/util/typo.php +++ b/util/typo.php @@ -67,8 +67,8 @@ } } - if(x($a->config,'system') && x($a->config['system'],'php_path')) - $phpath = $a->config['system']['php_path']; + if(x(App::$config,'system') && x(App::$config['system'],'php_path')) + $phpath = App::$config['system']['php_path']; else $phpath = 'php'; @@ -76,7 +76,7 @@ echo 'util/hstrings.php' . "\n"; include_once('util/hstrings.php'); - echo count($a->strings) . ' strings' . "\n"; + echo count(App::$strings) . ' strings' . "\n"; $files = glob('view/*/hstrings.php'); -- cgit v1.2.3 From 40f3857691639ea4b7ad6c69f55718671bfa9ccf Mon Sep 17 00:00:00 2001 From: redmatrix Date: Fri, 1 Apr 2016 01:02:03 -0700 Subject: change call to App::init() to bring back include path (only in typocheck) --- util/typo.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util/typo.php') diff --git a/util/typo.php b/util/typo.php index 11e51d89c..0f7249f5c 100644 --- a/util/typo.php +++ b/util/typo.php @@ -10,7 +10,9 @@ include 'boot.php'; - $a = new App(); + App::init(); + +// $a = new App(); echo "Directory: include\n"; $files = glob('include/*.php'); -- cgit v1.2.3