Code

Updated get_ou it receives values from the config registry now.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 13:33:38 +0000 (13:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 May 2010 13:33:38 +0000 (13:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18284 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc
gosa-plugins/gofon/gofon/conference/class_phoneConferenceManagment.inc
gosa-plugins/gofon/gofon/conference/tabs_conference.inc

index eb56f14a8085c659cc52998ad3970936cb9856cd..f77df2ba2be27bdcf51f0f4d3e6813476dc1cac7 100644 (file)
@@ -118,7 +118,7 @@ class conference extends plugin
     } else {
 
       /* Get base */ 
-      $this->base = preg_replace ("/^[^,]+,".preg_quote(get_ou('phoneConferenceRDN'), '/')."/i","",$this->dn);;
+      $this->base = preg_replace ("/^[^,]+,".preg_quote(get_ou("conference", "phoneConferenceRDN") , '/')."/i","",$this->dn);;
     }
 
     $this->goFonConferenceOwner=$this->ui->dn;
@@ -383,7 +383,7 @@ class conference extends plugin
 
     if($this->old_cn != $this->cn || $this->base != $this->old_base){
       $ldap = $this->config->get_ldap_link();
-      $ldap->cd(get_ou('phoneConferenceRDN').$this->base);
+      $ldap->cd(get_ou("conference", "phoneConferenceRDN") .$this->base);
       $ldap->search("(&(objectClass=goFonConference)(cn=".$this->cn."))",array("cn"));
       if($ldap->count()){
         $message[] = msgPool::duplicated(_("Name"));
index 113eb5075299b4fff6db363d301b589633718ed5..d5b21635cac5aaf5b8d5217c8e7248ee2da93572 100644 (file)
@@ -38,7 +38,7 @@ class phoneConferenceManagment extends management
     $this->config = $config;
     $this->ui = $ui;
    
-    $this->storagePoints = array(get_ou("phoneConferenceRDN"));
+    $this->storagePoints = array(get_ou("conference", "phoneConferenceRDN") );
  
     // Build filter
     if (session::global_is_set(get_class($this)."_filter")){
index 8d51b1f9bb95bde204288502fbf20838a6b38e59..5cf4dd4d81bba7a12129ba8680151f4ed54fe673 100644 (file)
@@ -22,7 +22,7 @@ class conferencetabs extends tabs
   function save($ignore_account= FALSE)
   {
        $baseobject= $this->by_object['conference'];
-       $new_dn= 'cn='.$baseobject->cn.','.get_ou('phoneConferenceRDN').$baseobject->base;
+       $new_dn= 'cn='.$baseobject->cn.','.get_ou("conference", "phoneConferenceRDN") .$baseobject->base;
 
        if(strtolower($this->dn)==strtolower($new_dn)){
                $this->dn=$new_dn;