From 61e14dd70fb045ac84caf92e688cd3b29b663f3f Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 24 Feb 2007 16:47:07 +0000 Subject: Fix for non-template template control loading. --- framework/Web/UI/TTemplateManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3