r24044 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24043‎ | r24044 | r24045 >
Date:20:08, 12 July 2007
Author:brion
Status:old
Tags:
Comment:
set returnto link to the rolled-back page, not the main page!
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2334,7 +2334,7 @@
23352335 $new = $wgUser->getSkin()->userLink( $target->getUser(), $target->getUserText() )
23362336 . $wgUser->getSkin()->userToolLinks( $target->getUser(), $target->getUserText() );
23372337 $wgOut->addHtml( wfMsgExt( 'rollback-success', array( 'parse', 'replaceafter' ), $old, $new ) );
2338 - $wgOut->returnToMain( false );
 2338+ $wgOut->returnToMain( false, $this->mTitle );
23392339 break;
23402340 default:
23412341 throw new MWException( __METHOD__ . ": Unknown return value `{$retval}`" );

Follow-up revisions

RevisionCommit summaryAuthorDate
r24096Merged revisions 23910-24094 via svnmerge from...david22:38, 14 July 2007

Status & tagging log