Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_goService.inc
index 49c44125f615eb26c5d9677eba050c8118f3eab1..edfd3d7d5be09a72320c841fa09f905965c67c4c 100644 (file)
@@ -20,7 +20,7 @@ class goService extends plugin{
 
    
   /* Construcktion */ 
-  function goService($config,$dn)
+  function goService(&$config,$dn)
   {
     plugin::plugin($config,$dn);
     $this->DisplayName = _("Empty service");
@@ -178,11 +178,7 @@ class goService extends plugin{
   function action_hook($add_attrs= array())
   {
     /* Find postcreate entries for this class */
-    $command= search_config($this->config->data['MENU'], get_class($this), "ACTION_HOOK");
-    if ($command == "" && isset($this->config->data['TABS'])){
-      $command= search_config($this->config->data['TABS'], get_class($this), "ACTION_HOOK");
-    }
-
+    $command= $this->config->search(get_class($this), "ACTION_HOOK",array('menu','tabs'));
     if ($command != ""){
 
       /* Walk through attribute list */