From: Alan Knowles Date: Sun, 13 Mar 2011 13:54:07 +0000 (+0800) Subject: Pman.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=6569dca6d7827b941905126e7551b45a0afee0d4 Pman.php --- diff --git a/Pman.php b/Pman.php index 8d3ab8e..a02c9f4 100644 --- a/Pman.php +++ b/Pman.php @@ -176,13 +176,20 @@ class Pman extends HTML_FlexyFramework_Page // both modules and components that can be enabled/disabled.. // the modules call just lists the modules - $enabled = array('Core'); + $enabled = array('Core' => true); $am = !empty($this->appModules) ? explode(',', $this->appModules) : array(); foreach($am as $k) { if (!$with_component && strpos( $k ,'.') ) { continue; } - + $enabled[$k] = true; + } + $disabled = explode(',', $this->appDisable ? $this->appDisable: ''); + foreach($disabled as $k) { + if (!$with_component && strpos( $k ,'.') ) { + continue; + } + $enabled[$k]; } $enabled = !empty($this->appModules) ? array_merge($enabled, explode(',', $this->appModules)) :