Index: trunk/phase3/includes/SpecialWhatlinkshere.php
===================================================================
--- trunk/phase3/includes/SpecialWhatlinkshere.php (revision 32302)
+++ trunk/phase3/includes/SpecialWhatlinkshere.php (revision 32303)
@@ -74,7 +74,7 @@
* @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 @@
if ( $row->page_is_redirect ) {
if ( $level < 2 ) {
- $this->showIndirectLinks( $level + 1, $nt, 500 );
+ $this->showIndirectLinks( $level + 1, $nt, $wgMaxRedirectLinksRetrieved );
}
}
$wgOut->addHTML( "</li>\n" );
Index: trunk/phase3/includes/DefaultSettings.php
===================================================================
--- trunk/phase3/includes/DefaultSettings.php (revision 32302)
+++ trunk/phase3/includes/DefaultSettings.php (revision 32303)
@@ -2955,3 +2955,9 @@
$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: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES (revision 32302)
+++ trunk/phase3/RELEASE-NOTES (revision 32303)
@@ -110,8 +110,8 @@
* (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 @@
* (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 ===