From 2fb99d1207161780c0ff30d700ae851eeccd26cd Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 26 Feb 2010 16:26:02 +0000 Subject: [PATCH] Updated pluglist git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15765 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_pluglist.inc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index b3f70b41b..103969ac3 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -23,19 +23,19 @@ class pluglist { var $index= 0; - var $menu= ""; - var $iconmenu= ""; - var $menuparts= array(); var $config= NULL; var $dirlist= array(); var $ui= NULL; - var $current= ""; var $info= array(); var $headlines = array(); var $silly_cache= array(); var $pluginList = array(); + var $pathMenu = ""; + var $menu= ""; + var $iconmenu= ""; + function pluglist(&$config, &$ui) { $this->ui= &$ui; @@ -189,7 +189,10 @@ class pluglist $menu.= "\n "; $id = 0; foreach ($plug as $info){ + + // Used to detect the last element in the menu $id ++; + list($index, $title, $desc, $icon) = $this->getPlugData($info['CLASS']); $class= ""; if($id == count($plug)) $class=" class='menu-last' \n "; @@ -282,8 +285,7 @@ class pluglist function genPathMenu() { - if(1 | empty($this->pathMenu)){ - + if(empty($this->pathMenu)){ $this->pathMenu = "\n
". "\n