From: janw Date: Tue, 23 Sep 2008 09:35:51 +0000 (+0000) Subject: Reflect config change from 'referral url' 'referral uri' X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=980dfbacecba2acd2c41b1878048e46d01f50e71;p=gosa.git 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 --- 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; }