Pman.php
[Pman.Base] / Pman.php
index 8b105eb..acd719c 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -158,7 +158,7 @@ class Pman extends HTML_FlexyFramework_Page
                 call_user_func_array(array($c,$fn),$args);
             }
         }
-        return $args;
+        return;
      }
     
     function get($base, $opts=array()) 
@@ -737,7 +737,7 @@ class Pman extends HTML_FlexyFramework_Page
         $this->callModules('outputJavascriptIncludes', $this);
          
     }
-    
+    var $css_includes = array();
      /**
      * outputCSSIncludes:
      *
@@ -752,9 +752,14 @@ class Pman extends HTML_FlexyFramework_Page
         
         $mods = $this->modulesList();
         
-        $val = $this->callModules('applyCSSIncludes', $this, array());
-        print_r($val);
+        $this->callModules('applyCSSIncludes', $this);
+        foreach($this->css_includes as $module => $ar) {
+            if ($ar) {
+                $this->assetArrayToHtml( $ar , 'css');
+            }
+        }
         
+        // old style... - probably remove this...
         $this->callModules('outputCSSIncludes', $this);
         
         foreach($mods as $mod) {