Code

Allow to open plugins from the pathMenu
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Feb 2010 15:44:10 +0000 (15:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Feb 2010 15:44:10 +0000 (15:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15763 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_pluglist.inc

index f52b9fda7316e99c39f663deb87d4a15a0831dc2..81f9a8d9f5894775d52d9acbc907d0fb22ed32e9 100644 (file)
@@ -41,6 +41,7 @@ class pluglist {
 
     // Get list of plugin paths, this allows us to open the plugins main.inc if available.
     $this->dirlist= $this->get_plugins ($this->dirlist, $this->config->data['MENU']);
+    $this->dirlist= array_merge($this->dirlist,$this->get_plugins ($this->dirlist, $this->config->data['MENU']));
 
     // Detect installed plugins and their configuration, to be able to restrict access later.
     $classes= get_declared_classes();
@@ -305,7 +306,8 @@ class pluglist {
           }
 
           list($index, $title, $desc, $icon) = $this->getPlugData($plug['CLASS']);
-          $this->pathMenu.= "\n     <li class='right left-border'>{$title}</li>";
+          $this->allowed_plugins[$index] = $index;
+          $this->pathMenu.= "\n     <li class='right left-border' onClick='openPlugin({$index})'>{$title}</li>";
         }
       }
       $this->pathMenu.= "\n    </ul>";