From: Huji Date: Fri, 21 Mar 2008 22:03:55 +0000 (+0000) Subject: (bug 5745) Special:Whatlinkshere shows no more than 500 links through each redirect X-Git-Tag: 1.31.0-rc.0~48891 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=607e488e95b222a2a069a9976108893570d7a032;p=lhc%2Fweb%2Fwiklou.git (bug 5745) Special:Whatlinkshere shows no more than 500 links through each redirect --- 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" );