r20473 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20472‎ | r20473 | r20474 >
Date:01:13, 15 March 2007
Author:aaron
Status:old
Tags:
Comment:
*Fix bug causing (revert) links not to show for moves
Modified paths:
  • /trunk/phase3/includes/SpecialLog.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialLog.php
@@ -585,12 +585,12 @@
586586 if ( $s->log_type == 'move' && isset( $paramArray[0] ) ) {
587587 $destTitle = Title::newFromText( $paramArray[0] );
588588 if ( $destTitle ) {
589 - $revert = '(' . $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Movepage' ),
 589+ $reviewlink = $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Movepage' ),
590590 wfMsg( 'revertmove' ),
591591 'wpOldTitle=' . urlencode( $destTitle->getPrefixedDBkey() ) .
592592 '&wpNewTitle=' . urlencode( $title->getPrefixedDBkey() ) .
593593 '&wpReason=' . urlencode( wfMsgForContent( 'revertmove' ) ) .
594 - '&wpMovetalk=0' ) . ')';
 594+ '&wpMovetalk=0' );
595595 }
596596 // show undelete link
597597 } else if ( $s->log_action == 'delete' && $wgUser->isAllowed( 'delete' ) ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r20779Fixing a regression (caused by r20473 and then r20525) that the move revert l...rotem17:10, 28 March 2007