aboutsummaryrefslogtreecommitdiffstats
path: root/include/cli_startup.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-31 20:15:47 -0700
committerredmatrix <git@macgirvin.com>2016-03-31 20:15:47 -0700
commit0cda43145629586e6110e83fa2356e1c4ee4811a (patch)
treecd971890c1731062fe2168959b29f85e9e070346 /include/cli_startup.php
parentbbfe4de3107a1eb8293f4ee6b620f7e27bf26dbf (diff)
downloadvolse-hubzilla-0cda43145629586e6110e83fa2356e1c4ee4811a.tar.gz
volse-hubzilla-0cda43145629586e6110e83fa2356e1c4ee4811a.tar.bz2
volse-hubzilla-0cda43145629586e6110e83fa2356e1c4ee4811a.zip
create miniApp to convert existing settings files to the static App class
Diffstat (limited to 'include/cli_startup.php')
-rw-r--r--include/cli_startup.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/cli_startup.php b/include/cli_startup.php
index 6aa652a8f..9fcdce199 100644
--- a/include/cli_startup.php
+++ b/include/cli_startup.php
@@ -9,12 +9,19 @@ function cli_startup() {
global $a, $db, $default_timezone;
if(is_null($a)) {
- $a = new App;
+ $a = new miniApp;
}
+
+ if(is_null($app)) {
+ $app = new App;
+ }
+
if(is_null($db)) {
@include(".htconfig.php");
+ $a->convert();
+
if(! defined('UNO'))
define('UNO', 0);