From 2f273f267f9eba92c28466c197859bf9e9945a95 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 10 Sep 2009 13:17:32 +0000 Subject: [PATCH] Be able to override plugin names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14223 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_pluglist.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index 9789a5776..528052a87 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -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']); -- 2.30.2