From 0be2589471d01ea8471a7bdb297fea98783db12f Mon Sep 17 00:00:00 2001
From: xue <>
Date: Sat, 26 Nov 2005 02:07:41 +0000
Subject:
---
demos/controls/protected/application.xml | 2 ++
demos/personal/protected/application.xml | 2 ++
framework/Exceptions/TErrorHandler.php | 1 +
framework/Exceptions/TException.php | 2 +-
4 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/demos/controls/protected/application.xml b/demos/controls/protected/application.xml
index 6f8b11bc..50375cc6 100644
--- a/demos/controls/protected/application.xml
+++ b/demos/controls/protected/application.xml
@@ -7,7 +7,9 @@
+
diff --git a/demos/personal/protected/application.xml b/demos/personal/protected/application.xml
index ef7240b9..111cbc7a 100644
--- a/demos/personal/protected/application.xml
+++ b/demos/personal/protected/application.xml
@@ -22,7 +22,9 @@
+
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);
}
--
cgit v1.2.3