diff options
author | xue <> | 2006-05-12 12:29:14 +0000 |
---|---|---|
committer | xue <> | 2006-05-12 12:29:14 +0000 |
commit | 2348789034d16ddbd6bcdf6daaae5cdfe3e7551c (patch) | |
tree | 1f9c638cfb822f127c5055543107138bbbc0040f /framework | |
parent | 9424f71824c3bf7ad3d8404e0fbc44717b10896f (diff) |
Fixed an issue about setting BasePath.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/TAssetManager.php | 2 | ||||
-rw-r--r-- | framework/Web/UI/TThemeManager.php | 2 |
2 files changed, 2 insertions, 2 deletions
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);
}
|