Added limit regardless of selected category
authorAlexander Ebert <ebert@woltlab.com>
Sun, 11 Jan 2015 15:10:20 +0000 (16:10 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 11 Jan 2015 15:10:20 +0000 (16:10 +0100)
The limit origins to the time where we had no pagination, since these is one in place we can safely limit and use offsets instead.

wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php

index e09452da5d7883f027d65088ff5940934ada3468..168e7e9e5d32deeee6af8f83389e0ac839a987b4 100644 (file)
@@ -131,7 +131,7 @@ class LanguageItemListPage extends AbstractPage {
                if ($this->languageItem) $this->languageItemList->getConditionBuilder()->add('languageItem LIKE ?', array($this->languageItem.'%'));
                if ($this->languageItemValue) $this->languageItemList->getConditionBuilder()->add('((languageUseCustomValue = 0 AND languageItemValue LIKE ?) OR languageCustomItemValue LIKE ?)', array('%'.$this->languageItemValue.'%', '%'.$this->languageItemValue.'%'));
                if ($this->hasCustomValue) $this->languageItemList->getConditionBuilder()->add("languageCustomItemValue IS NOT NULL");
-               if (!$this->languageCategoryID) $this->languageItemList->sqlLimit = 100;
+               $this->languageItemList->sqlLimit = 100;
                
                if (!empty($_POST)) {
                        $this->count = $this->languageItemList->countObjects();