From: hickert Date: Fri, 26 Feb 2010 15:44:10 +0000 (+0000) Subject: Allow to open plugins from the pathMenu X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b186d68bb6081b4787c81d6924b4cc0458da6a66;p=gosa.git Allow to open plugins from the pathMenu git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15763 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index f52b9fda7..81f9a8d9f 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -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
  • {$title}
  • "; + $this->allowed_plugins[$index] = $index; + $this->pathMenu.= "\n
  • {$title}
  • "; } } $this->pathMenu.= "\n ";