Fixed globals from config file not being properly loaded from grey_reload_config()
authorDan
Wed, 24 Sep 2008 00:18:21 -0400
changeset 52 ab3541465382
parent 51 7009a9cbd46f
child 53 a6b339665650
Fixed globals from config file not being properly loaded from grey_reload_config()
functions.php
--- a/functions.php	Tue Sep 23 23:31:51 2008 -0400
+++ b/functions.php	Wed Sep 24 00:18:21 2008 -0400
@@ -294,5 +294,13 @@
     else
       require(GREY_ROOT . '/config.php');
   }
+  
+  foreach ( array('public', 'allowcontrol', 'theme', 'allow_fork', 'use_auth', 'auth_data', 'configpass') as $var )
+  {
+    if ( isset($$var) )
+    {
+      $GLOBALS[$var] = $$var;
+    }
+  }
 }