Last modified: 2008-03-21 22:05:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T7745, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5745 - Special:Whatlinkshere shows no more than 500 links through each redirect
Special:Whatlinkshere shows no more than 500 links through each redirect
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.7.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
: patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-28 12:25 UTC by Stuart Orford
Modified: 2008-03-21 22:05 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Stuart Orford 2006-04-28 12:25:17 UTC
Special:Whatlinkshere shows up to 500 direct links per page, with options for
"previous/next 500". For each incoming redirect, it additionally shows up to 500
links through that redirect. However, this second limit of 500 seems to be
unrelated to the first limit, and no "next 500" option is available. See
[[w:en:Liberal Democrats]], where there are under 500 direct links, but over
2000 through [[Liberal Democrats (UK)]], and there is no way of viewing all the
redirected links on [[Special:Whatlinkshere/Liberal Democrats]].
[[Special:Whatlinkshere/Liberal Democrats (UK)]] shows all the redirected links
fine.
Comment 1 Rob Church 2006-05-06 15:25:53 UTC
Probably a hard limit due to performance concerns.
Comment 2 Chad H. 2007-07-15 02:20:50 UTC
It is currently set to a hard limit. The following patch would allow a global variable to set that number.

Index: SpecialWhatlinkshere.php
===================================================================
--- SpecialWhatlinkshere.php	(revision 24102)
+++ SpecialWhatlinkshere.php	(working copy)
@@ -73,7 +73,7 @@
 	 * @private
 	 */
 	function showIndirectLinks( $level, $target, $limit, $from = 0, $back = 0 ) {
-		global $wgOut;
+		global $wgOut, $wgShowMaxRedirectLinks;
 		$fname = 'WhatLinksHerePage::showIndirectLinks';
 		$dbr = wfGetDB( DB_READ );
 		$options = array();
@@ -240,7 +240,7 @@
 			
 			if ( $row->page_is_redirect ) {
 				if ( $level < 2 ) {
-					$this->showIndirectLinks( $level + 1, $nt, 500 );
+					$this->showIndirectLinks( $level + 1, $nt, $wgShowMaxRedirectLinks );
 				}
 			}
 			$wgOut->addHTML( "</li>\n" );
Comment 3 Huji 2008-03-21 22:05:33 UTC
I applied this with a few changes in r32303. If more than 500 such links are wanted on a wiki, $wgMaxRedirectLinksRetrieved can be set to the desired value on LocalSetting.php

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links