diff --git a/acptemplate/roomList.tpl b/acptemplate/roomList.tpl index c57df12..82545f5 100644 --- a/acptemplate/roomList.tpl +++ b/acptemplate/roomList.tpl @@ -4,7 +4,7 @@ // @@ -26,7 +26,7 @@ {hascontent}
-
    +
      {content} {foreach from=$objects item=chatRoom}
    1. diff --git a/file/lib/acp/page/RoomListPage.class.php b/file/lib/acp/page/RoomListPage.class.php index 9faa097..468f308 100644 --- a/file/lib/acp/page/RoomListPage.class.php +++ b/file/lib/acp/page/RoomListPage.class.php @@ -1,5 +1,6 @@ objects = new \chat\data\room\RoomList(); + $this->objects->sqlOrder = 'position ASC'; + $this->objects->readObjects(); + } /** - * @see \wcf\page\MultipleLinkPage::$sortOrder + * @see wcf\page\IPage::assignVariables() */ - public $sortOrder = 'ASC'; + public function assignVariables() { + parent::assignVariables(); + + WCF::getTPL()->assign(array( + 'objects' => $this->objects + )); + } }