r20779 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20778‎ | r20779 | r20780 >
Date:17:10, 28 March 2007
Author:rotem
Status:old
Tags:
Comment:
Fixing a regression (caused by r20473 and then r20525) that the move revert link was not shown.
Modified paths:
  • /trunk/phase3/includes/SpecialLog.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialLog.php
@@ -347,12 +347,12 @@
348348 if ( $s->log_type == 'move' && isset( $paramArray[0] ) ) {
349349 $destTitle = Title::newFromText( $paramArray[0] );
350350 if ( $destTitle ) {
351 - $reviewlink = $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Movepage' ),
 351+ $revert = '(' . $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Movepage' ),
352352 wfMsg( 'revertmove' ),
353353 'wpOldTitle=' . urlencode( $destTitle->getPrefixedDBkey() ) .
354354 '&wpNewTitle=' . urlencode( $title->getPrefixedDBkey() ) .
355355 '&wpReason=' . urlencode( wfMsgForContent( 'revertmove' ) ) .
356 - '&wpMovetalk=0' );
 356+ '&wpMovetalk=0' ) . ')';
357357 }
358358 // show undelete link
359359 } elseif ( $s->log_action == 'delete' && $wgUser->isAllowed( 'delete' ) ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r21381Re-apply r20779 fix and use changed text for the (non-miser) search textboxbrion14:40, 19 April 2007

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r20473*Fix bug causing (revert) links not to show for movesaaron01:13, 15 March 2007
r20525For now revert the rev_deleted branch merge; don't want trunk to get too far ...brion16:01, 16 March 2007