(bug 5745) Special:Whatlinkshere shows no more than 500 links through each redirect
authorHuji <huji@users.mediawiki.org>
Fri, 21 Mar 2008 22:03:55 +0000 (22:03 +0000)
committerHuji <huji@users.mediawiki.org>
Fri, 21 Mar 2008 22:03:55 +0000 (22:03 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/SpecialWhatlinkshere.php

index 00b7c92..a590354 100644 (file)
@@ -110,8 +110,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13429) Separate date and time in message sp-newimages-showfrom
 * (bug 13137) Allow setting 'editprotected' right separately from 'protect',    
   so groups may optionally edit protected pages without having 'protect' perms
-* Disallow deletion of big pages by means of moving a page to its title and using the
-  "delete and move" option.
+* Disallow deletion of big pages by means of moving a page to its title and
+  using the "delete and move" option.
 * (bug 13466) White space differences not shown in diffs
 * (bug 1953) Search form now honors namespace selections more reliably
 
@@ -141,6 +141,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13442) Missing pages in prop=langlinks and prop=extlinks are now 
   handled properly.
 * (bug 13444) Add description to list=watchlist
+* (bug 5745) Special:Whatlinkshere shows no more than 500 links through each
+  redirect
 
 === Languages updated in 1.13 ===
 
index 71c1c80..2e30bf2 100644 (file)
@@ -2955,3 +2955,9 @@ $wgExceptionHooks = array();
 $wgPagePropLinkInvalidations = array(
        'hiddencat' => 'categorylinks',
 );
+
+/**
+ * Maximum number of links to a redirect page listed on
+ * Special:Whatlinkshere/RedirectDestination
+ */
+$wgMaxRedirectLinksRetrieved = 500;
\ No newline at end of file
index d5496d0..56b977e 100644 (file)
@@ -74,7 +74,7 @@ class WhatLinksHerePage {
         * @private
         */
        function showIndirectLinks( $level, $target, $limit, $from = 0, $back = 0 ) {
-               global $wgOut;
+               global $wgOut, $wgMaxRedirectLinksRetrieved;
                $fname = 'WhatLinksHerePage::showIndirectLinks';
                $dbr = wfGetDB( DB_SLAVE );
                $options = array();
@@ -235,7 +235,7 @@ class WhatLinksHerePage {
                        
                        if ( $row->page_is_redirect ) {
                                if ( $level < 2 ) {
-                                       $this->showIndirectLinks( $level + 1, $nt, 500 );
+                                       $this->showIndirectLinks( $level + 1, $nt, $wgMaxRedirectLinksRetrieved );
                                }
                        }
                        $wgOut->addHTML( "</li>\n" );