TickTackk
Well-known member
- Affected version
- 2.1.10
In
In
It sets both thread's first and last post timestamp when it should only call
src\XF\Pub\Controller\Forum.php
it accepts order
field for sorting
PHP:
$order = $this->filter('order', 'str');
switch ($order)
{
case 'post_date':
break;
default:
$order = 'last_post_date';
break;
}
$threadList->order($order, 'DESC');
In
src\XF\Pub\View\Forum\Rss.php
PHP:
->setDateCreated($thread->post_date)
->setDateModified($thread->last_post_date);
setDateModified
IF the order set in the URL is not post_date
otherwise no matter what the order is set it's always the last_post_date
value that is considered as "pubDate"