From: Alexandre Emsenhuber Date: Thu, 30 Jun 2011 19:34:25 +0000 (+0000) Subject: Per Aaron, fix for r91180: pass false to second parameter of User::newFromName()... X-Git-Tag: 1.31.0-rc.0~29148 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=f3d4dbdf05f9c3ee9ac3d0ac701a5036a8c8452b;p=lhc%2Fweb%2Fwiklou.git Per Aaron, fix for r91180: pass false to second parameter of User::newFromName() to allow anonymous users --- diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 910f3817ae..18c558c039 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -538,7 +538,7 @@ class PageArchive { $wasnew = $article->updateIfNewerOn( $dbw, $revision, $previousRevId ); if ( $created || $wasnew ) { // Update site stats, link tables, etc - $user = User::newFromName( $revision->getRawUserText() ); + $user = User::newFromName( $revision->getRawUserText(), false ); $article->doEditUpdates( $revision, $user, array( 'created' => $created, 'oldcountable' => $oldcountable ) ); }