From 2348789034d16ddbd6bcdf6daaae5cdfe3e7551c Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 12 May 2006 12:29:14 +0000 Subject: Fixed an issue about setting BasePath. --- framework/Web/TAssetManager.php | 2 +- framework/Web/UI/TThemeManager.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php index 9a4ad3e5..94c84ae7 100644 --- a/framework/Web/TAssetManager.php +++ b/framework/Web/TAssetManager.php @@ -111,7 +111,7 @@ class TAssetManager extends TModule throw new TInvalidOperationException('assetmanager_basepath_unchangeable'); else { - $this->_basePath=Prado::getPathOfAlias($value); + $this->_basePath=Prado::getPathOfNamespace($value); if($this->_basePath===null || !is_dir($this->_basePath) || !is_writable($this->_basePath)) throw new TInvalidDataValueException('assetmanage_basepath_invalid',$value); } diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index 83032684..7ae36556 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -104,7 +104,7 @@ class TThemeManager extends TModule throw new TInvalidOperationException('thememanager_basepath_unchangeable'); else { - $this->_basePath=Prado::getPathOfAlias($value); + $this->_basePath=Prado::getPathOfNamespace($value); if($this->_basePath===null || !is_dir($this->_basePath)) throw new TInvalidDataValueException('thememanager_basepath_invalid',$value); } -- cgit v1.2.3