sync
authorAlan Knowles <alan@roojs.com>
Thu, 13 Jul 2017 02:28:59 +0000 (10:28 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 13 Jul 2017 02:28:59 +0000 (10:28 +0800)
Pman.php

index ec8ac82..8a12336 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -663,8 +663,18 @@ class Pman extends HTML_FlexyFramework_Page
         
         $mods = $this->modulesList();
         
+        $is_bootstrap = in_array('BAdmin', $mods);
+        
         foreach($mods as $mod) {
             // add the css file..
+            
+            if ($is_bootstrap) {
+                if (!file_exists($this->rootDir."/Pman/$mod/is_bootstrap")) {
+                    echo '<!-- missing '. $this->rootDir."/Pman/$mod/is_bootstrap  - skipping -->";
+                    continue;
+                }
+                
+            }
         
             $this->outputJavascriptDir("Pman/$mod/widgets", "*.js");
             $this->outputJavascriptDir("Pman/$mod", "*.js");