mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Improve ACP pages / forms
This commit is contained in:
parent
335fa0ea7a
commit
a5d61acdf0
@ -13,9 +13,9 @@
|
||||
* @package be.bastelstu.wcf.chat
|
||||
* @subpackage acp.form
|
||||
*/
|
||||
class ChatRoomAddForm extends ACPForm {
|
||||
class ChatRoomAddForm extends \wcf\form\AbstractForm {
|
||||
/**
|
||||
* @see \wcf\acp\form\ACPForm::$activeMenuItem
|
||||
* @see \wcf\acp\page\AbstractPage::$activeMenuItem
|
||||
*/
|
||||
public $activeMenuItem = 'wcf.acp.menu.link.chat.room.add';
|
||||
|
||||
|
@ -11,6 +11,11 @@
|
||||
* @subpackage acp.page
|
||||
*/
|
||||
class ChatRoomListPage extends \wcf\page\MultipleLinkPage {
|
||||
/**
|
||||
* @see \wcf\page\AbstractPage::$activeMenuItem
|
||||
*/
|
||||
public $activeMenuItem = 'wcf.acp.menu.link.chat.room.list';
|
||||
|
||||
/**
|
||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||
*/
|
||||
@ -33,14 +38,4 @@ class ChatRoomListPage extends \wcf\page\MultipleLinkPage {
|
||||
* @see \wcf\page\MultipleLinkPage::$sortOrder
|
||||
*/
|
||||
public $sortOrder = 'ASC';
|
||||
|
||||
/**
|
||||
* @see \wcf\page\IPage::show()
|
||||
*/
|
||||
public function show() {
|
||||
// set active menu item.
|
||||
\wcf\system\menu\acp\ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.chat.room.list');
|
||||
|
||||
parent::show();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user