From c7a1f89262a4da6f0e265bf94deb4a9c17d96966 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 4 Sep 2008 23:25:53 +0000 Subject: [PATCH] (bug 15292) New message notification for unregistred users now works again --- RELEASE-NOTES | 1 + includes/Article.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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 ) ) { -- 2.20.1