(bug 13736) Don't show MediaWiki:Anontalkpagetext on non-existant IP addresses
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 14 Apr 2008 16:16:02 +0000 (16:16 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 14 Apr 2008 16:16:02 +0000 (16:16 +0000)
RELEASE-NOTES
includes/Article.php

index 3abb9d1..84c8fcc 100644 (file)
@@ -179,6 +179,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13705) Don't show rollback link in page history if called with dir=prev
 * (bug 13708) Don't set "Search results" title when loading Special:Search
   without query
+* (bug 13736) Don't show MediaWiki:Anontalkpagetext on non-existant IP addresses
 
 === API changes in 1.13 ===
 
index 8a919c8..3d444c2 100644 (file)
@@ -899,7 +899,7 @@ class Article {
 
                # check if we're displaying a [[User talk:x.x.x.x]] anonymous talk page
                if( $ns == NS_USER_TALK &&
-                       User::isIP( $this->mTitle->getText() ) ) {
+                       IP::isValid( $this->mTitle->getText() ) ) {
                        $wgOut->addWikiMsg('anontalkpagetext');
                }