Code

Be able to override plugin names
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Sep 2009 13:17:32 +0000 (13:17 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Sep 2009 13:17:32 +0000 (13:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14223 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_pluglist.inc

index 9789a57764ea1a2e788e382e3b7667a437869707..528052a875c054e5d28e3f98bd51f356a48c0b1e 100644 (file)
@@ -183,7 +183,11 @@ class pluglist {
                                                continue;
                                        }
                                        $vars= get_class_vars($info['CLASS']);
-                                       $plHeadline= $vars['plHeadline'];
+                                       if (isset($info['NAME'])){
+                                         $plHeadline= _($info['NAME']);
+                                        } else {
+                                         $plHeadline= $vars['plHeadline'];
+                                        }
                                        $plDescription= $vars['plDescription'];
 
                                        $index= $this->get_index($info['CLASS']);