In the reply view, the 15 most recent posts of the current topic are displayed.
The most recent one is displayed on top and erroneously is numbered #1 while all subsequent ones carry the correct number (in descending order).
This is not a duplicate of issue "Post appeared as #1 when it should have been #13".
Instead, it has to do with the "First Post On Every Page" extension by rxu which is installed in my board but not activated for the affected topic.
The following code snippet (lines 252-263 in file "event/listener.php") sets the first post to 1 on purpose, even when the sort order is chronologically descending:
Code: Select all
// Compatibility with the First Post On Every Page extension by rxu
if ($this->firstPostOnEveryPage !== null)
{
$this->firstPostOnEveryPage = null;
// If posts are sorted ascending, we display #1 on all except the first page.
// If posts are sorted descending, we always display #1.
if (!$is_ascending || $start != 0)
{
return 1;
}
}
For my installation, I modified the above code snippet by extending line 259 from
Code: Select all
if (!$is_ascending || $start != 0)
Code: Select all
if ((!$is_reply_review && !$is_ascending) || $start != 0)
@kasimi: Is this the proper way how you would fix it?
Cheers
holg3r