Fix #6571 - store progress locally so task list can be rebuilt.
authorAlan Knowles <alan@roojs.com>
Mon, 25 Jan 2021 05:06:05 +0000 (13:06 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 25 Jan 2021 05:06:05 +0000 (13:06 +0800)
DB/mysqlfb.php
HTML/FlexyFramework.php
HTML/FlexyFramework2.php

index 5e39746..ca345b9 100644 (file)
@@ -139,7 +139,7 @@ class DB_mysqlfb extends DB_mysqli
     // {{{ disconnect()
 
      
-    // }}}
+    // }}}z
 
 }
 
index 3d16bca..c1a23e4 100755 (executable)
@@ -213,7 +213,15 @@ RewriteRule ^(.+)$ /web.hpasite/index.local.php [L,NC,E=URL:$1]
         }
         $proj = $cfg['project'];
         $rootDir = realpath(dirname($_SERVER["SCRIPT_FILENAME"]));
-
+        $cls = $proj.'_Config';
+        if (file_exists($rootDir . '/'.str_replace('_','/', $cls). '.php')) {
+            require_once str_replace('_','/', $cls). '.php';
+            $c = new $cls();
+            if (method_exists($c,'init')) {
+                $cfg = $c->init($this,$cfg);
+            }
+        }
+        
         foreach(explode(',',$cfg['enable']) as $m) {
             $cls = $proj.'_'. $m . '_Config';
 
index fed11cd..9d3c36d 100644 (file)
@@ -201,6 +201,15 @@ class HTML_FlexyFramework2 {
         $proj = $cfg['project'];
         $rootDir = realpath(dirname($_SERVER["SCRIPT_FILENAME"]));
 
+        $cls = $proj.'_Config';
+        if (file_exists($rootDir . '/'.str_replace('_','/', $cls). '.php')) {
+            require_once str_replace('_','/', $cls). '.php';
+            $c = new $cls();
+            if (method_exists($c,'init')) {
+                $cfg = $c->init($this,$cfg);
+            }
+        }
+        
         foreach($mods as $m) {
             $cls = $proj. (strlen($m) ? '_'. $m  : '' ) . '_Config';