Compare page title with $wgUser->getTitleKey() not $wgUser->getName(). New talk notif...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 22 Jul 2006 18:32:53 +0000 (18:32 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 22 Jul 2006 18:32:53 +0000 (18:32 +0000)
includes/Article.php

index f5d1de6..3d6460f 100644 (file)
@@ -2147,7 +2147,7 @@ class Article {
                # If this is another user's talk page, update newtalk
                # Don't do this if $changed = false otherwise some idiot can null-edit a
                # load of user talk pages and piss people off
-               if( $this->mTitle->getNamespace() == NS_USER_TALK && $shortTitle != $wgUser->getName() && $changed ) {
+               if( $this->mTitle->getNamespace() == NS_USER_TALK && $shortTitle != $wgUser->getTitleKey() && $changed ) {
                        if (wfRunHooks('ArticleEditUpdateNewTalk', array(&$this)) ) {
                                $other = User::newFromName( $shortTitle );
                                if( is_null( $other ) && User::isIP( $shortTitle ) ) {