Code

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

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc

index 53ae8325af8f4b59f74b944c1773cc3380f23e95..8f5e874be367fa77c79784a38169b848f7c57446 100644 (file)
@@ -1224,7 +1224,7 @@ class workstartup extends plugin
    */
   function dn_to_release_name($dn)
   {
-    $relevant = preg_replace("/,".preg_quote(get_ou("faiBaseRDN"), '/').".*$/i","",$dn);
+    $relevant = preg_replace("/,".preg_quote(get_ou("faiManagement", "faiBaseRDN"), '/').".*$/i","",$dn);
     $parts    = array_reverse(explode(",",$relevant));
     $str ="";
     foreach($parts as $part){