From e1db417f1a55c29a27edd7befa90fd53c7d21525 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 17 Jul 2016 10:26:12 +0200 Subject: [PATCH] Increase number of items displayed in moderation dropdown --- .../data/moderation/queue/ModerationQueueAction.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php index ec446480e2..001c83ede5 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -118,7 +118,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { ON (tracked_visit.objectTypeID = ".VisitTracker::getInstance()->getObjectTypeID('com.woltlab.wcf.moderation.queue')." AND tracked_visit.objectID = moderation_queue.queueID AND tracked_visit.userID = ".WCF::getUser()->userID.") ".$conditions." ORDER BY moderation_queue.lastChangeTime DESC"; - $statement = WCF::getDB()->prepareStatement($sql, 5); + $statement = WCF::getDB()->prepareStatement($sql, 10); $statement->execute($conditions->getParameters()); $queueIDs = $statement->fetchAll(\PDO::FETCH_COLUMN); @@ -137,13 +137,13 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { // check if user storage is outdated $totalCount = ModerationQueueManager::getInstance()->getUnreadModerationCount(); $count = count($queues); - if ($count < 5) { + if ($count < 10) { // load more entries to fill up list $queueList = new ViewableModerationQueueList(); $queueList->getConditionBuilder()->add("moderation_queue.status IN (?)", [[ModerationQueue::STATUS_OUTSTANDING, ModerationQueue::STATUS_PROCESSING]]); if (!empty($queueIDs)) $queueList->getConditionBuilder()->add("moderation_queue.queueID NOT IN (?)", [$queueIDs]); $queueList->sqlOrderBy = "moderation_queue.lastChangeTime DESC"; - $queueList->sqlLimit = 5 - $count; + $queueList->sqlLimit = 10 - $count; $queueList->loadUserProfiles = true; $queueList->readObjects(); foreach ($queueList as $queue) { -- 2.20.1