diff options
author | xue <> | 2005-11-18 00:46:02 +0000 |
---|---|---|
committer | xue <> | 2005-11-18 00:46:02 +0000 |
commit | c9cbb1a2891543bff1c459af18c2c62f47a17d28 (patch) | |
tree | 0f8a038bb870b73060f743ceaf9d0a24c9bb1326 /framework/Web/UI/TThemeManager.php | |
parent | ec41f13012ca7c8ca67e1c1992368a5dee2a9624 (diff) |
Diffstat (limited to 'framework/Web/UI/TThemeManager.php')
-rw-r--r-- | framework/Web/UI/TThemeManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index 9b7dc6a6..f98563e0 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -121,9 +121,9 @@ class TTheme extends TTemplate public function __construct($content,$themePath)
{
- $this->_themePath=strtr($themePath,'\\','/');
+ $this->_themePath=realpath($themePath);
$basePath=dirname(Prado::getApplication()->getRequest()->getPhysicalApplicationPath());
- if(($pos=strpos($this->_themePath,$basePath))===false)
+ if($this->_themePath===false || ($pos=strpos($this->_themePath,$basePath))===false)
throw new TConfigurationException('theme_themepath_invalid',$themePath);
else
{
|