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) {
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;
}