From: hickert Date: Thu, 25 Feb 2010 16:18:51 +0000 (+0000) Subject: Updated pluglist generation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0f7fbbc7f67092a9a7e5960fe7fe13193bbdf85f;p=gosa.git Updated pluglist generation -use new styles with "; return $result; } @@ -382,19 +375,19 @@ class pluglist { } function get_index($class) - { - /* Search for plugin index (id), identify entry by path && class */ - $data = $this->config->data['MENU']; - foreach($data as $section => $plugins){ - foreach($plugins as $key => $plugin) { - if($plugin['CLASS'] == $class){ - return($key); - } - } - } - - /* Nothing */ - return (0); + { + /* Search for plugin index (id), identify entry by path && class */ + $data = $this->config->data['MENU']; + foreach($data as $section => $plugins){ + foreach($plugins as $key => $plugin) { + if($plugin['CLASS'] == $class){ + return($key); + } + } + } + + /* Nothing */ + return (0); }