r57702 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57701‎ | r57702 | r57703 >
Date:11:08, 14 October 2009
Author:werdna
Status:deferred
Tags:
Comment:
(bug 21057) Leave sortkey the same for moved thread breadcrumbs
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/Thread.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/Thread.php
@@ -334,6 +334,9 @@
335335 // Add the trace thread to the tracking table.
336336 $thread = Threads::newThread( $redirectArticle, new Article_LQT_Compat( $oldTitle ), null,
337337 Threads::TYPE_MOVED, $this->subject() );
 338+
 339+ $thread->setSortkey( $this->sortkey() );
 340+ $thread->save();
338341 }
339342
340343 // Lists total reply count, including replies to replies and such

Status & tagging log