summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TTemplateManager.php
diff options
context:
space:
mode:
authorxue <>2006-02-20 23:25:30 +0000
committerxue <>2006-02-20 23:25:30 +0000
commiteecb18e702bc269bbf7fd5b4f8a9ec9e18557031 (patch)
tree57bfa51874585eb7d092254bab627a416adf7e7a /framework/Web/UI/TTemplateManager.php
parent8e5627918e7f0c437df1a47af27545132a1c3cbc (diff)
Code cleanup and added some documentation.
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r--framework/Web/UI/TTemplateManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php
index 404be231..75f6268f 100644
--- a/framework/Web/UI/TTemplateManager.php
+++ b/framework/Web/UI/TTemplateManager.php
@@ -100,8 +100,8 @@ class TTemplateManager extends TModule
*/
protected function getLocalizedTemplate($filename)
{
- $app = $this->getApplication()->getGlobalization();
- if(is_null($app)) return $filename;
+ if(($app=$this->getApplication()->getGlobalization())===null)
+ return $filename;
foreach($app->getLocalizedResource($filename) as $file)
{
if(($file=realpath($file))!==false && is_file($file))