1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Run the subpages.

I really wanna have PHP 5.4 ready :(
This commit is contained in:
Tim Düsterhus 2012-06-10 18:49:11 +02:00
parent 366b7207ca
commit 93ea9c8341

View File

@ -158,21 +158,26 @@ public function readParameters() {
switch ($this->action) { switch ($this->action) {
case 'Message': case 'Message':
new ChatMessagePage(); $page = new ChatMessagePage();
$page->__run();
exit; exit;
case 'Log': case 'Log':
exit; exit;
case 'RefreshRoomList': case 'RefreshRoomList':
new ChatRefreshRoomListPage(); $page = new ChatRefreshRoomListPage();
$page->__run();
exit; exit;
case 'Send': case 'Send':
new \wcf\form\ChatForm(); $form = new \wcf\form\ChatForm();
$form->__run();
exit; exit;
case 'Leave': case 'Leave':
new \wcf\action\ChatLeaveAction(); $action = new \wcf\action\ChatLeaveAction();
$action->__run();
exit; exit;
case 'Copyright': case 'Copyright':
new ChatCopyrightPage(); $page = new ChatCopyrightPage();
$page->__run();
exit; exit;
} }