aboutsummaryrefslogtreecommitdiffstats
path: root/boot.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 /boot.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 'boot.php')
-rwxr-xr-xboot.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 41c994ddc..07c427e10 100755
--- a/boot.php
+++ b/boot.php
@@ -640,6 +640,29 @@ class ZotlabsAutoloader {
/**
+ * class miniApp
+ *
+ * this is a transient structure which is needed to convert the $a->config settings
+ * from older (existing) htconfig files which used a global App ($a) into the updated App structure
+ * which is now static (although currently constructed at startup). We are only converting
+ * 'system' config settings.
+ */
+
+
+class miniApp {
+ public $config = array('system' => array());
+
+ public function convert() {
+ if($this->config['system']) {
+ foreach($this->config['system'] as $k => $v)
+ App::$config['system'][$k] = $v;
+ }
+ }
+}
+
+
+
+/**
* class: App
*
* @brief Our main application structure for the life of this page.