r54407 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54406‎ | r54407 | r54408 >
Date:23:04, 4 August 2009
Author:werdna
Status:deferred
Tags:
Comment:
Fix pointing of offset in recentchanges entries
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/Hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/Hooks.php
@@ -58,7 +58,8 @@
5959 // Make sure it points to the right page. The Pager seems to use the DB
6060 // representation of a timestamp for its offset field, odd.
6161 $dbr = wfGetDB( DB_SLAVE );
62 - $offset = $dbr->timestamp( $thread->topmostThread()->modified() );
 62+ $offset = wfTimestamp( TS_UNIX, $thread->topmostThread()->modified() ) + 1;
 63+ $offset = $dbr->timestamp( $offset );
6364
6465 $thread_link = $changeslist->skin->link( $tmp_title,
6566 htmlspecialchars($thread->subjectWithoutIncrement()),

Status & tagging log