diff options
author | xue <> | 2005-11-17 19:21:21 +0000 |
---|---|---|
committer | xue <> | 2005-11-17 19:21:21 +0000 |
commit | d833d2766f28f927cb4e1e8e660771361abdfdf9 (patch) | |
tree | f64d674c8e1ce25bdb712efb64fdf5557db9e550 /framework/Web/UI | |
parent | aa2edcf52ee7438876d826283274bf7e271fad4a (diff) |
added application mode support.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/TThemeManager.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index 5f347e8f..9b407b90 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -64,17 +64,20 @@ class TThemeManager extends TComponent implements IModule {
list($theme,$timestamp)=$array;
$cacheValid=true;
- if(($dir=opendir($themePath))===false)
- throw new TIOException('thememanager_themepath_invalid',$themePath);
- while(($file=readdir($dir))!==false)
+ if($this->_application->getMode()!=='Performance')
{
- if(basename($file,'.skin')!==$file && filemtime($themePath.'/'.$file)>$timestamp)
+ if(($dir=opendir($themePath))===false)
+ throw new TIOException('thememanager_themepath_invalid',$themePath);
+ while(($file=readdir($dir))!==false)
{
- $cacheValid=false;
- break;
+ if(basename($file,'.skin')!==$file && filemtime($themePath.'/'.$file)>$timestamp)
+ {
+ $cacheValid=false;
+ break;
+ }
}
+ closedir($dir);
}
- closedir($dir);
if($cacheValid)
return $theme;
}
|