Pman.php
authorAlan Knowles <alan@roojs.com>
Mon, 17 Sep 2018 01:40:52 +0000 (09:40 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Sep 2018 01:40:52 +0000 (09:40 +0800)
Pman.php

index a232c33..e760e62 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -138,9 +138,11 @@ class Pman extends HTML_FlexyFramework_Page
      * 
      */
      
-     function callModules($fn, $base
+     function callModules($fn) 
      {
-         foreach(explode(',',$this->appModules) as $m) {
+        $ar = func_get_args();
+        array_shift($ar);
+        foreach(explode(',',$this->appModules) as $m) {
              $cls = 'Pman_'. $m . '_Pman';
              if (!file_exists($this->rootDir . '/'.str_replace('_','/', $cls). '.php')) {
                  continue;
@@ -158,7 +160,6 @@ class Pman extends HTML_FlexyFramework_Page
         $this->init();
         if (empty($base)) {
             $this->callModules('init', $base);
-            // $this->initModules($base);
         }
         
             //$this->allowSignup= empty($opts['allowSignup']) ? 0 : 1;