From 153581e1081ba4225eb93221aced493709cb606c Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 23 Dec 2005 03:31:07 +0000 Subject: Implemented new page storage method. --- framework/Web/UI/TAssetManager.php | 4 ++-- framework/Web/UI/TThemeManager.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/TAssetManager.php b/framework/Web/UI/TAssetManager.php index 78b84177..f9a9dcb8 100644 --- a/framework/Web/UI/TAssetManager.php +++ b/framework/Web/UI/TAssetManager.php @@ -152,7 +152,7 @@ class TAssetManager extends TModule { $dir=$this->hash(dirname($fullpath)); $file=$this->_basePath.'/'.$dir.'/'.basename($fullpath); - if(!is_file($file) || $checkTimestamp || $this->_application->getMode()!=='Performance') + if(!is_file($file) || $checkTimestamp || $this->_application->getMode()!==TApplication::STATE_PERFORMANCE) { if(!is_dir($this->_basePath.'/'.$dir)) @mkdir($this->_basePath.'/'.$dir); @@ -165,7 +165,7 @@ class TAssetManager extends TModule else { $dir=$this->hash($fullpath); - if(!is_dir($this->_basePath.'/'.$dir) || $checkTimestamp || $this->_application->getMode()!=='Performance') + if(!is_dir($this->_basePath.'/'.$dir) || $checkTimestamp || $this->_application->getMode()!==TApplication::STATE_PERFORMANCE) $this->copyDirectory($fullpath,$this->_basePath.'/'.$dir); $this->_published[$path]=$this->_baseUrl.'/'.$dir; return $this->_published[$path]; diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index 6c7457ee..afe3f02a 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -224,7 +224,7 @@ class TTheme extends TComponent { list($skins,$cssFiles,$jsFiles,$timestamp)=$array; $cacheValid=true; - if($application->getMode()!=='Performance') + if($application->getMode()!==TApplication::STATE_PERFORMANCE) { if(($dir=opendir($themePath))===false) throw new TIOException('theme_path_inexistent',$themePath); -- cgit v1.2.3