summaryrefslogtreecommitdiff
path: root/framework/Exceptions/TErrorHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Exceptions/TErrorHandler.php')
-rw-r--r--framework/Exceptions/TErrorHandler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php
index fe756e32..efcbe831 100644
--- a/framework/Exceptions/TErrorHandler.php
+++ b/framework/Exceptions/TErrorHandler.php
@@ -94,7 +94,7 @@ class TErrorHandler extends TComponent implements IModule
$base=$this->_templatePath.'/'.self::ERROR_FILE_NAME;
$lang=array_shift(explode('-',array_shift(Prado::getUserLanguages())));
if(!empty($lang) && !ctype_alpha($lang))
- die('No hack attempt please.');
+ $lang='';
if(is_file("$base$statusCode-$lang.tpl"))
$errorFile="$base$statusCode-$lang.tpl";
else if(is_file("$base$statusCode.tpl"))
@@ -177,7 +177,7 @@ class TErrorHandler extends TComponent implements IModule
);
$lang=array_shift(explode('-',array_shift(Prado::getUserLanguages())));
if(!empty($lang) && !ctype_alpha($lang))
- die('No hack attempt please.');
+ $lang='';
$exceptionFile=dirname(__FILE__).'/'.self::EXCEPTION_FILE_NAME.'-'.$lang.'.tpl';
if(!is_file($exceptionFile))
$exceptionFile=dirname(__FILE__).'/'.self::EXCEPTION_FILE_NAME.'.tpl';