From 607e488e95b222a2a069a9976108893570d7a032 Mon Sep 17 00:00:00 2001 From: Huji Date: Fri, 21 Mar 2008 22:03:55 +0000 Subject: [PATCH] (bug 5745) Special:Whatlinkshere shows no more than 500 links through each redirect --- RELEASE-NOTES | 6 ++++-- includes/DefaultSettings.php | 6 ++++++ includes/SpecialWhatlinkshere.php | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 00b7c922f4..a590354259 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 71c1c8028d..2e30bf2e81 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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 diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index d5496d0e9b..56b977ea70 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -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( "\n" ); -- 2.20.1