Added users online list pagination
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / page / UsersOnlineListPage.class.php
index 4d9eb95fa3665c5196598194b86dbfaaceaafc3e..2527b5d6f124eb16cb473379bb3840416f12321a 100644 (file)
@@ -32,6 +32,11 @@ class UsersOnlineListPage extends SortablePage {
         */
        public $enableTracking = true;
        
+       /**
+        * @inheritDoc
+        */
+       public $itemsPerPage = 100;
+       
        /**
         * @inheritDoc
         */
@@ -137,8 +142,7 @@ class UsersOnlineListPage extends SortablePage {
         * @inheritDoc
         */
        protected function readObjects() {
-               $this->objectList->sqlLimit = 0;
-               if ($this->sqlOrderBy) $this->objectList->sqlOrderBy = ($this->sortField == 'lastActivityTime' ? 'session.' : '').$this->sqlOrderBy;
-               $this->objectList->readObjects();
+               if ($this->sqlOrderBy) $this->sqlOrderBy = ($this->sortField == 'lastActivityTime' ? 'session.' : '').$this->sqlOrderBy;
+               parent::readObjects();
        }
 }