From 0f7fbbc7f67092a9a7e5960fe7fe13193bbdf85f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 25 Feb 2010 16:18:51 +0000 Subject: [PATCH] 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); } -- 2.30.2