summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TThemeManager.php
diff options
context:
space:
mode:
authorxue <>2006-02-07 02:31:27 +0000
committerxue <>2006-02-07 02:31:27 +0000
commita2bb6b40fa09b9d25a610ea71854bfd06ee538cf (patch)
tree638e8697c94945a436d51d681b15f40802f0dd16 /framework/Web/UI/TThemeManager.php
parent0d56725dd699041530e92026868193e87b81b837 (diff)
Fixed a bug in generating URLs with double slashes.
Diffstat (limited to 'framework/Web/UI/TThemeManager.php')
-rw-r--r--framework/Web/UI/TThemeManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php
index f29a8def..51796046 100644
--- a/framework/Web/UI/TThemeManager.php
+++ b/framework/Web/UI/TThemeManager.php
@@ -123,7 +123,7 @@ class TThemeManager extends TModule
$basePath=$this->getBasePath();
if(strpos($basePath,$appPath)===false)
throw new TConfigurationException('thememanager_baseurl_required');
- $appUrl=dirname($this->getRequest()->getApplicationPath());
+ $appUrl=rtrim(dirname($this->getRequest()->getApplicationPath()),'/');
$this->_baseUrl=$appUrl.strtr(substr($basePath,strlen($appPath)),'\\','/');
}
return $this->_baseUrl;