Make sure no outgoing links are listed for nonexistent pages. Used to look for links...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Sun, 14 Sep 2008 04:28:16 +0000 (04:28 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Sun, 14 Sep 2008 04:28:16 +0000 (04:28 +0000)
RELEASE-NOTES
includes/specials/SpecialRecentchangeslinked.php

index a020edc..dababff 100644 (file)
@@ -199,6 +199,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 12284) Special:Preferences now sets a returnto parameter on the link to Special:Userlogin. Patch by Marooned.
 * Fixed the HTTP accept language string detection length in 
   LanguageConverter.php, instead of the fixed length language codes.
+* Special:Recentchangeslinked no longer shows outgoing links for nonexistent pages
+  even if there are broken link records with source article id 0 in the database
 
 
 === API changes in 1.14 ===
index 2adc010..361b7df 100644 (file)
@@ -96,6 +96,9 @@ class SpecialRecentchangeslinked extends SpecialRecentchanges {
                        if( $ns == NS_IMAGE || !$showlinkedto ) $link_tables[] = 'imagelinks';
                }
 
+               if( $id == 0 && !$showlinkedto )
+                       return false; // nonexistent pages can't link to any pages
+
                // field name prefixes for all the various tables we might want to join with
                $prefix = array( 'pagelinks' => 'pl', 'templatelinks' => 'tl', 'categorylinks' => 'cl', 'imagelinks' => 'il' );