From: Alexander Ebert Date: Sun, 11 Jan 2015 15:10:20 +0000 (+0100) Subject: Added limit regardless of selected category X-Git-Tag: 2.1.0_Beta_4~106^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba84f6293c725f06a41a3aa5ddb600fe19d3a5f4;p=GitHub%2FWoltLab%2FWCF.git Added limit regardless of selected category 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. --- diff --git a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php index e09452da5d..168e7e9e5d 100644 --- a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php @@ -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();