summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorxue <>2006-02-08 21:06:54 +0000
committerxue <>2006-02-08 21:06:54 +0000
commit1f19172f3df377ca0e88bb230d6f374ebef41b91 (patch)
tree1ab31079fc583ec17144b67883bc2b4fd9895114 /framework/Web
parent9943fc0c6b3f7ffc5295a25206aa0b47091453ba (diff)
Moved onExitApplication out of destructor.
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/THttpResponse.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index d51c0cf2..1cbf9751 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -265,6 +265,7 @@ class THttpResponse extends TModule implements ITextWriter
*/
public function redirect($url)
{
+ $this->getApplication()->onExitApplication();
header('Location:'.$url);
exit();
}