diff options
author | xue <> | 2008-01-04 22:46:57 +0000 |
---|---|---|
committer | xue <> | 2008-01-04 22:46:57 +0000 |
commit | e1efeb5f9def8439f027d06c767ca2571d507e6f (patch) | |
tree | 6e19f6fafdd9a8a3790bebbe9b43573ffc48d76f | |
parent | faa7d9973a9b9ee8d3e1459e2ad414bee245478b (diff) |
Fixed #743.
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/Exceptions/TErrorHandler.php | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -11,6 +11,7 @@ CHG: Active Record many-to-many relationship change from self::HAS_MANY to self: CHG: Active Record no longer automatically performs adding/removing/updating related objects (Qiang) CHG: TJavaScript::encode() will encode data as a list if integer indices are detected (Qiang) ENH: Ticket#722 - Add Read Only capabilities to TInPlaceTextBox (Christophe) +ENH: Ticket#743 - Added status code header in HTTP response when in error (Qiang) ENH: Active Record supports multiple foreign references of the same table (Wei) ENH: Added TDbCommand.queryColumn() (Qiang) ENH: Active Record now supports implicitly declared related properties (Qiang) diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php index 0eeea9ce..30ee3f4c 100644 --- a/framework/Exceptions/TErrorHandler.php +++ b/framework/Exceptions/TErrorHandler.php @@ -165,6 +165,7 @@ class TErrorHandler extends TModule '%%Version%%' => $version,
'%%Time%%' => @strftime('%Y-%m-%d %H:%M',time())
);
+ header("HTTP/1.0 $statusCode ".$exception->getErrorMessage());
echo strtr($content,$tokens);
}
|