</div>
<div>
<h3><a href="{@$queue->getLink()}">{$queue->getAffectedObject()->getTitle()}</a></h3>
- <small>{if $queue->getUserProfile()->userID}<a href="{link controller='User' object=$queue->getUserProfile()->getDecoratedObject()}{/link}">{$queue->getAffectedObject()->getUsername()}</a>{else}{$queue->getAffectedObject()->getUsername()}{/if} - {@$queue->getAffectedObject()->getTime()|time}</small>
+ <small>{if $queue->getUserProfile()->userID}<a href="{link controller='User' object=$queue->getUserProfile()->getDecoratedObject()}{/link}">{$queue->getAffectedObject()->getUsername()}</a>{else}{$queue->getAffectedObject()->getUsername()}{/if} - {@$queue->lastChangeTime|time}</small>
</div>
</div>
</li>
if (!empty($queueIDs)) {
$queueList = new ViewableModerationQueueList();
$queueList->getConditionBuilder()->add("moderation_queue.queueID IN (?)", array($queueIDs));
+ $queueList->sqlOrderBy = "moderation_queue.lastChangeTime DESC";
$queueList->loadUserProfiles = true;
$queueList->readObjects();
- $queues = $queueList->getObjects();
+ foreach ($queueList as $queue) {
+ $queues[] = $queue;
+ }
}
// check if user storage is outdated
$queueList->sqlLimit = 5 - $count;
$queueList->loadUserProfiles = true;
$queueList->readObjects();
- $queues = array_merge($queues, $queueList->getObjects());
+ foreach ($queueList as $queue) {
+ $queues[] = $queue;
+ }
// check if stored count is out of sync
if ($count < $totalCount) {