From c087da5cc7191c7458272be102c861ab8cf96acf Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 May 2010 08:45:42 +0000 Subject: [PATCH] Fixed spelling of several properties and added missing ones git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18339 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_configRegistry.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc index 6e458c096..033782e54 100644 --- a/gosa-core/include/class_configRegistry.inc +++ b/gosa-core/include/class_configRegistry.inc @@ -86,8 +86,13 @@ class configRegistry{ $def = call_user_func(array($cname, 'plInfo'));; // Register Post Events (postmodfiy,postcreate,postremove,checkhook) - if(isset($def['plShortName'])){ - $this->classToName[$cname] = $def['plShortName']; + if(count($def)){ + + $name = $cname; + $name = (isset($def['plShortName'])) ? $def['plShortName'] : $cname; + $name = (isset($def['plDescription'])) ? $def['plDescription'] : $cname; + + $this->classToName[$cname] = $name; $data = array('name' => 'postcreate','type' => 'command'); $this->register($cname, $data); $data = array('name' => 'postremove','type' => 'command'); -- 2.30.2