From 980dfbacecba2acd2c41b1878048e46d01f50e71 Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 23 Sep 2008 09:35:51 +0000 Subject: [PATCH] Reflect config change from 'referral url' 'referral uri' git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12540 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index ddc26fcf3..fb0cacbce 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -188,7 +188,7 @@ class config { /* Handle referral tags */ case 'REFERRAL': if ($this->tags[$this->level-2] == 'LOCATION'){ - $url= $attrs['URL']; + $url= $attrs['URI']; $server= preg_replace('!^([^:]+://[^/]+)/.*$!', '\\1', $url); /* Add location elements */ @@ -335,8 +335,8 @@ class config { $bases= array(); $servers= array(); foreach ($this->current['REFERRAL'] as $ref){ - $server= preg_replace('%^(.*)/[^/]+$%', '\\1', $ref['URL']); - $base= preg_replace('%^.*/([^/]+)$%', '\\1', $ref['URL']); + $server= preg_replace('%^(.*)/[^/]+$%', '\\1', $ref['URI']); + $base= preg_replace('%^.*/([^/]+)$%', '\\1', $ref['URI']); $bases[$base]= strlen($base); $servers[$base]= $server; } -- 2.30.2