Pman.php
authorAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 09:55:36 +0000 (17:55 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 09:55:36 +0000 (17:55 +0800)
Pman.php

index d3f9f19..0c886ee 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -724,13 +724,8 @@ class Pman extends HTML_FlexyFramework_Page
         
         foreach($mods as $mod) {
             // add the css file..
-            $dir = $this->rootDir.'/Pman/'.$mod;
-            $ar = glob($dir . '/*.css');
-            foreach($ar as $fn) { 
-                $css = $this->rootURL .'/Pman/'.$mod.'/'.basename($fn) . '?ts=' . filemtime($fn);
-                echo '<link rel="stylesheet" type="text/css" href="'.$css.'" />'."\n";
-            }
-             
+            $this->outputCSSDir("Pman/$mod","*.css");
+            
             
         }