summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2007-02-24 16:47:07 +0000
committerxue <>2007-02-24 16:47:07 +0000
commit61e14dd70fb045ac84caf92e688cd3b29b663f3f (patch)
tree51228658ad6a14196235249e4adb6e44e9acd184 /framework
parentd9cc697fe4a26c40e63a52deba0d52c3f5c575d3 (diff)
Fix for non-template template control loading.
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/TTemplateManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php
index ef4a5c1e..b94becb1 100644
--- a/framework/Web/UI/TTemplateManager.php
+++ b/framework/Web/UI/TTemplateManager.php
@@ -122,7 +122,7 @@ class TTemplateManager extends TModule
protected function getLocalizedTemplate($filename)
{
if(($app=$this->getApplication()->getGlobalization(false))===null)
- return $filename;
+ return is_file($filename)?$filename:null;
foreach($app->getLocalizedResource($filename) as $file)
{
if(($file=realpath($file))!==false && is_file($file))