diff options
author | xue <> | 2006-02-07 02:31:27 +0000 |
---|---|---|
committer | xue <> | 2006-02-07 02:31:27 +0000 |
commit | a2bb6b40fa09b9d25a610ea71854bfd06ee538cf (patch) | |
tree | 638e8697c94945a436d51d681b15f40802f0dd16 /framework/Web/UI/TThemeManager.php | |
parent | 0d56725dd699041530e92026868193e87b81b837 (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.php | 2 |
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;
|