stupid .in
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 23 Jul 2006 23:08:10 +0000 (23:08 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 23 Jul 2006 23:08:10 +0000 (23:08 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@618 839d8a87-29fc-0310-9880-83ba4fa771e5

include/platal/globals.inc.php.in

index b260161..377869c 100644 (file)
@@ -69,6 +69,14 @@ class PlatalGlobals extends DiogenesCoreGlobals
 
     function read_config()
     {
+        $array = parse_ini_file($this->spoolroot.'/configs/platal.ini', true);
+        foreach ($array as $cat => $conf) {
+            $c = strtolower($cat);
+            foreach ($conf as $k => $v) {
+                $this->$c->$k = $v;
+            }
+        }
+
         $array = parse_ini_file($this->spoolroot.'/configs/platal.conf', true);
         if (!is_array($array)) {
             return;