Pman.php
authorEdward <edward@roojs.com>
Mon, 18 May 2015 05:25:36 +0000 (13:25 +0800)
committerEdward <edward@roojs.com>
Mon, 18 May 2015 05:25:36 +0000 (13:25 +0800)
Pman.php

index 95a1818..6a30961 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -247,6 +247,11 @@ class Pman extends HTML_FlexyFramework_Page
             array_unshift($mods,   'Core');
         }
         
+        if (in_array($this->appNameShort,$mods)) { // Project has to be the last  modules loaded as it contains Pman.js
+            unset($mods[array_search($this->appNameShort, $mods)]);
+            $mods[] = $this->appNameShort;
+        }
+        
         $mods = array_unique($mods);
          
         $disabled =  explode(',', $boot->disable ? $boot->disable : '');