projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f8a3124
)
Pman.php
author
Alan Knowles
<alan@akbkhome.com>
Sun, 13 Mar 2011 13:54:07 +0000
(21:54 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sun, 13 Mar 2011 13:54:07 +0000
(21:54 +0800)
Pman.php
patch
|
blob
|
history
diff --git
a/Pman.php
b/Pman.php
index
8d3ab8e
..
a02c9f4
100644
(file)
--- 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
// 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;
}
$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)) :
}
$enabled = !empty($this->appModules) ?
array_merge($enabled, explode(',', $this->appModules)) :