From 0cda43145629586e6110e83fa2356e1c4ee4811a Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 31 Mar 2016 20:15:47 -0700 Subject: create miniApp to convert existing settings files to the static App class --- include/cli_startup.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/cli_startup.php') 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); -- cgit v1.2.3