summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2005-11-26 02:07:41 +0000
committerxue <>2005-11-26 02:07:41 +0000
commit0be2589471d01ea8471a7bdb297fea98783db12f (patch)
tree7b1ec50c3de3ef21ce238f91c666a71c08683f2c /framework
parent7ee7a1ba237755ea1d0c4eef4d667e9c412de082 (diff)
Diffstat (limited to 'framework')
-rw-r--r--framework/Exceptions/TErrorHandler.php1
-rw-r--r--framework/Exceptions/TException.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php
index 592ba615..8af92ecc 100644
--- a/framework/Exceptions/TErrorHandler.php
+++ b/framework/Exceptions/TErrorHandler.php
@@ -153,6 +153,7 @@ class TErrorHandler extends TComponent implements IModule
$handling=true;
if(($response=Prado::getApplication()->getResponse())!==null)
$response->clear();
+ header('Content-Type: text/html; charset=UTF-8');
if($param instanceof THttpException)
$this->handleExternalError($param->getStatusCode(),$param);
else if(Prado::getApplication()->getMode()==='Debug')
diff --git a/framework/Exceptions/TException.php b/framework/Exceptions/TException.php
index a4cd6f60..fb668458 100644
--- a/framework/Exceptions/TException.php
+++ b/framework/Exceptions/TException.php
@@ -159,7 +159,7 @@ class THttpException extends TException
{
$args=func_get_args();
array_shift($args);
- call_user_func_array(array('parent', '__construct'), $args);
+ call_user_func_array(array('TException', '__construct'), $args);
$this->_statusCode=TPropertyValue::ensureInteger($statusCode);
}