Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_servRepositorySetup.inc
index f186bf912a499a6ae5f029c8362f8e1dcb801d4b..40f37b0628acca88f431cc89042a7e16b31cdcf2 100644 (file)
@@ -22,7 +22,7 @@ class servRepositorySetup  extends plugin
   var $cn               = "";
   var $parent           = "";
 
-  function servRepositorySetup ($config, $dn= NULL,$data = false)
+  function servRepositorySetup (&$config, $dn= NULL,$data = false)
   {
     plugin::plugin ($config, $dn);
     if($data != false){
@@ -193,7 +193,7 @@ class servRepositorySetup  extends plugin
   function GetHookElements()
   {
     $ret = array();
-    $cmd= search_config($this->config->data['TABS'], "servrepository", "REPOSITORY_HOOK");
+    $cmd = $this->config->search("servrepository", "REPOSITORY_HOOK",array('tabs'));
     if(!empty($cmd)){
       $res = shell_exec($cmd);
       $res2 = trim($res);