From 93ea9c834120c231cff937e3858e0de7d2b44054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 10 Jun 2012 18:49:11 +0200 Subject: [PATCH] Run the subpages. I really wanna have PHP 5.4 ready :( --- file/lib/page/ChatPage.class.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index c3da844..d3ae064 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -158,21 +158,26 @@ public function readParameters() { switch ($this->action) { case 'Message': - new ChatMessagePage(); + $page = new ChatMessagePage(); + $page->__run(); exit; case 'Log': exit; case 'RefreshRoomList': - new ChatRefreshRoomListPage(); + $page = new ChatRefreshRoomListPage(); + $page->__run(); exit; case 'Send': - new \wcf\form\ChatForm(); + $form = new \wcf\form\ChatForm(); + $form->__run(); exit; case 'Leave': - new \wcf\action\ChatLeaveAction(); + $action = new \wcf\action\ChatLeaveAction(); + $action->__run(); exit; case 'Copyright': - new ChatCopyrightPage(); + $page = new ChatCopyrightPage(); + $page->__run(); exit; }