summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TThemeManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/TThemeManager.php')
-rw-r--r--framework/Web/UI/TThemeManager.php4
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
{