From: Alexandre Emsenhuber Date: Thu, 4 Sep 2008 23:25:53 +0000 (+0000) Subject: (bug 15292) New message notification for unregistred users now works again X-Git-Tag: 1.31.0-rc.0~45476 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=c7a1f89262a4da6f0e265bf94deb4a9c17d96966;p=lhc%2Fweb%2Fwiklou.git (bug 15292) New message notification for unregistred users now works again --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 34cf164a3b..9f3b71c18b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Article.php b/includes/Article.php index f43a5a1c5a..4064d7df6e 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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 ) ) {