r80494 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80493‎ | r80494 | r80495 >
Date:14:40, 18 January 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Use the normal way of constructing links instead of hard coded trickery which breaks up randomly
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/View.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/View.php
@@ -1172,8 +1172,7 @@
11731173 );
11741174
11751175 if ( $this->user->isAllowed( 'move' ) ) {
1176 - $move_href = SpecialPage::getTitleFor( 'MoveThread' )->getLocalURL()
1177 - . '/' . $thread->title()->getPrefixedURL();
 1176+ $move_href = SpecialPage::getTitleFor( 'MoveThread', $thread->title()->getPrefixedText() )->getLocalURL();
11781177 $commands['move'] = array(
11791178 'label' => wfMsg( 'lqt-movethread' ),
11801179 'href' => $move_href,

Status & tagging log