Pman.php
authorAlan Knowles <alan@roojs.com>
Mon, 17 Sep 2018 02:12:53 +0000 (10:12 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Sep 2018 02:12:53 +0000 (10:12 +0800)
Pman.php

index 25b78c7..02e194a 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -143,6 +143,7 @@ class Pman extends HTML_FlexyFramework_Page
     function callModules($fn) 
     {
         $args = func_get_args();
+        array_shift($args);
         foreach(explode(',',$this->appModules) as $m) {
             $cls = 'Pman_'. $m . '_Pman';
             if (!file_exists($this->rootDir . '/'.str_replace('_','/', $cls). '.php')) {
@@ -744,7 +745,7 @@ class Pman extends HTML_FlexyFramework_Page
             $this->outputCSSDir("Pman/$mod","*.css");
         }
         
-        $this->callModules('outputCSSIncludes', false);
+        $this->callModules('outputCSSIncludes', $this);
     }