Code

Fixed spelling of several properties and added missing ones
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 08:45:42 +0000 (08:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 08:45:42 +0000 (08:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18339 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_configRegistry.inc

index 6e458c096ad943187f862264547388a67f2a40f0..033782e54de53de60357527967bb706378e6bd2d 100644 (file)
@@ -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');