From 95462e0eb735af4a54e8d72aed55bcc44efe0b52 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 19 Nov 2005 00:31:05 +0000 Subject: --- framework/Exceptions/TErrorHandler.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'framework/Exceptions') diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php index efcbe831..b5919e5d 100644 --- a/framework/Exceptions/TErrorHandler.php +++ b/framework/Exceptions/TErrorHandler.php @@ -95,14 +95,14 @@ class TErrorHandler extends TComponent implements IModule $lang=array_shift(explode('-',array_shift(Prado::getUserLanguages()))); if(!empty($lang) && !ctype_alpha($lang)) $lang=''; - if(is_file("$base$statusCode-$lang.tpl")) - $errorFile="$base$statusCode-$lang.tpl"; - else if(is_file("$base$statusCode.tpl")) - $errorFile="$base$statusCode.tpl"; - else if(is_file("$base-$lang.tpl")) - $errorFile="$base-$lang.tpl"; + if(is_file("$base$statusCode-$lang.html")) + $errorFile="$base$statusCode-$lang.html"; + else if(is_file("$base$statusCode.html")) + $errorFile="$base$statusCode.html"; + else if(is_file("$base-$lang.html")) + $errorFile="$base-$lang.html"; else - $errorFile="$base.tpl"; + $errorFile="$base.html"; if(($content=@file_get_contents($errorFile))===false) die("Unable to open error template file '$errorFile'."); @@ -178,9 +178,9 @@ class TErrorHandler extends TComponent implements IModule $lang=array_shift(explode('-',array_shift(Prado::getUserLanguages()))); if(!empty($lang) && !ctype_alpha($lang)) $lang=''; - $exceptionFile=dirname(__FILE__).'/'.self::EXCEPTION_FILE_NAME.'-'.$lang.'.tpl'; + $exceptionFile=dirname(__FILE__).'/'.self::EXCEPTION_FILE_NAME.'-'.$lang.'.html'; if(!is_file($exceptionFile)) - $exceptionFile=dirname(__FILE__).'/'.self::EXCEPTION_FILE_NAME.'.tpl'; + $exceptionFile=dirname(__FILE__).'/'.self::EXCEPTION_FILE_NAME.'.html'; if(($content=@file_get_contents($exceptionFile))===false) die("Unable to open exception template file '$exceptionFile'."); echo str_replace($fields,$values,$content); -- cgit v1.2.3