MediaWiki r32303 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r32302‎ | r32303 (on ViewVC)‎ | r32304 >
Date:22:03, 21 March 2008
Author:huji
Status:old
Tags:
Comment:
(bug 5745) Special:Whatlinkshere shows no more than 500 links through each redirect
Modified paths:

Diff [purge]

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 ===
 

Status & tagging log

  • 15:25, 12 September 2011 Meno25 (Talk | contribs) changed the status of r32303 [removed: ok added: old]
Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox