r95645 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95644‎ | r95645 | r95646 >
Date:03:34, 29 August 2011
Author:juliano
Status:deferred
Tags:
Comment:
Fix crash when creating a new wikilog post as an unlogged user.
Modified paths:
  • /trunk/extensions/Wikilog/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/Wikilog/WikilogParser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikilog/RELEASE-NOTES
@@ -18,8 +18,10 @@
1919
2020 * (mw:bug 27904) Fixed method signature compatibility with Mw1.16 for
2121 WikilogParserCache.
 22+* (wl:issue 12) Fixed calls to $wgParser->clearState() (which is now a private
 23+ function).
 24+* Fixed a crash when creating a new wikilog post as an unlogged user.
2225
23 -
2426 == Wikilog 1.1.0 ==
2527
2628 Aug 8, 2010
Index: trunk/extensions/Wikilog/WikilogParser.php
@@ -472,7 +472,7 @@
473473 }
474474
475475 $user = User::newFromName( $name );
476 - if ( !is_null( $user ) ) {
 476+ if ( $user ) {
477477 $parser->mExtWikilog->mAuthors[$user->getName()] = $user->getID();
478478 }
479479 else {

Status & tagging log