Code

Some additional hardcoded department links moved to get_ou()
[gosa.git] / gosa-plugins / gofax / gofax / blocklists / class_blocklistGeneric.inc
index 19284661d0870feb2755e7d07218761567e0bba9..bbb19426205a71a559f4435ae134e1c2cede4216 100644 (file)
@@ -209,7 +209,7 @@ class blocklistGeneric extends plugin
       }
       if ($this->dn == 'new'){
         $ldap= $this->config->get_ldap_link();
-        $ldap->cd ("ou=gofax,ou=systems,".$this->config->current["BASE"]);
+        $ldap->cd (get_ou('blocklistou').$this->config->current["BASE"]);
         $ldap->search ("(&(|(objectClass=goFaxSBlock)(objectClass=goFaxRBlock))(cn=".$this->cn."))", array("cn"));
         if ($ldap->count() != 0){
           $message[]= _("Specified name is already used.");