r91203 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91202‎ | r91203 | r91204 >
Date:19:34, 30 June 2011
Author:ialex
Status:ok
Tags:
Comment:
Per Aaron, fix for r91180: pass false to second parameter of User::newFromName() to allow anonymous users
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUndelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUndelete.php
@@ -538,7 +538,7 @@
539539 $wasnew = $article->updateIfNewerOn( $dbw, $revision, $previousRevId );
540540 if ( $created || $wasnew ) {
541541 // Update site stats, link tables, etc
542 - $user = User::newFromName( $revision->getRawUserText() );
 542+ $user = User::newFromName( $revision->getRawUserText(), false );
543543 $article->doEditUpdates( $revision, $user, array( 'created' => $created, 'oldcountable' => $oldcountable ) );
544544 }
545545

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91180Fixes for r88113 and some realted changes:...ialex15:26, 30 June 2011

Status & tagging log