summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f21f34c)
raw | patch | inline | side by side (parent: f21f34c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Sep 2010 14:17:18 +0000 (14:17 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Sep 2010 14:17:18 +0000 (14:17 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19566 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_configRegistry.inc | patch | blob | history | |
gosa-core/include/class_plugin.inc | patch | blob | history |
diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc
index f895a3dac561ef9a0c1a8c04d3c426c7beb37f3c..f971d10a5ebadbbbca7251ec9b2bc4aa27095ab6 100644 (file)
}
}
- // Search for config flags defined in the config file (MENU section)
foreach($this->config->data['MENU'] as $section => $entries){
foreach($entries as $entry){
}
}
+ // Search for config flags defined in the config file (PATHMENU)
+ foreach($this->config->data['PATHMENU'] as $entry){
+
+ if(isset($entry['CLASS'])){
+
+ // Put plugin to active plugins list.
+ $class = strtolower($entry['CLASS']);
+ $this->activePlugins[$class] = $class;
+
+ if(count($entry) > 2 ){
+ foreach($entry as $name => $value){
+ if(!in_array($name, array('CLASS','ACL'))){
+ $this->fileStoredProperties[strtolower($class)][strtolower($name)] = $value;
+ }
+ }
+ }
+ }
+ }
+
// Search for config flags defined in the config file (MAIN section)
foreach($this->config->data['MAIN'] as $name => $value){
$this->fileStoredProperties['core'][strtolower($name)] = $value;
index e1a7853b9622a3716553d6e3c996e245a69101f6..de01808bedc097f23a12566389995ae7c347321c 100644 (file)
global $config;
$command = $config->configRegistry->getPropertyValue(get_class($plugin),$cmd);
- if ($command != ""){
+ if (empty($command)){
+ $returnCode = 0; // Simulate a return code to tell the caller that everythin is fine.
+ }else{
// Walk trough attributes list and add the plugins attributes.
foreach ($plugin->attributes as $attr){