summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 395ded8)
raw | patch | inline | side by side (parent: 395ded8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 May 2010 08:45:42 +0000 (08:45 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc
index 6e458c096ad943187f862264547388a67f2a40f0..033782e54de53de60357527967bb706378e6bd2d 100644 (file)
$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');