(bug 15292) New message notification for unregistred users now works again
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 4 Sep 2008 23:25:53 +0000 (23:25 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 4 Sep 2008 23:25:53 +0000 (23:25 +0000)
RELEASE-NOTES
includes/Article.php

index 34cf164..9f3b71c 100644 (file)
@@ -177,6 +177,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 15399) Odd/even classes on sortable tables' rows could be slow for large
   tables, and have been disabled by default.
 * (bug 15482) Special:Recentchangeslinked has no longer two submit buttons
+* (bug 15292) New message notification for unregistred users now works again
 
 
 === API changes in 1.14 ===
index f43a5a1..4064d7d 100644 (file)
@@ -2745,9 +2745,9 @@ class Article {
                # load of user talk pages and piss people off, nor if it's a minor edit
                # by a properly-flagged bot.
                if( $this->mTitle->getNamespace() == NS_USER_TALK && $shortTitle != $wgUser->getTitleKey() && $changed
-                       && !($minoredit && $wgUser->isAllowed('nominornewtalk') ) ) {
-                       if (wfRunHooks('ArticleEditUpdateNewTalk', array(&$this)) ) {
-                               $other = User::newFromName( $shortTitle );
+                       && !( $minoredit && $wgUser->isAllowed( 'nominornewtalk' ) ) ) {
+                       if( wfRunHooks('ArticleEditUpdateNewTalk', array( &$this ) ) ) {
+                               $other = User::newFromName( $shortTitle, false );
                                if ( !$other ) {
                                        wfDebug( __METHOD__.": invalid username\n" );
                                } elseif( User::isIP( $shortTitle ) ) {