From: Ricordisamoa Date: Wed, 10 Dec 2014 01:29:14 +0000 (+0000) Subject: Hide file links in action=info's 'Number of redirects to this page' X-Git-Tag: 1.31.0-rc.0~12891^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=6f6c7c14c4386a710bbc5e5413edd7885fdafbb1;p=lhc%2Fweb%2Fwiklou.git Hide file links in action=info's 'Number of redirects to this page' Special:WhatLinksHere gets now passed hideimages=1 if the concerned page is in the File namespace. A bit of history: the 'hideimages' parameter has been added to Special:WhatLinksHere with commit 06ad0d25 (r34267), then removed with commit cdc7e22d (r34277), and finally added back with 725cb284 (r34320). Change-Id: I0f358e52c38bb525cee8085ca206118ee276889d --- diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25 index 06d2d6619d..9e728ab61d 100644 --- a/RELEASE-NOTES-1.25 +++ b/RELEASE-NOTES-1.25 @@ -109,6 +109,8 @@ production. ** Title::moveTo() was deprecated. Use the MovePage class instead. ** Title::isValidMoveOperation() broken down into MovePage::isValidMove() and MovePage::checkPermissions(). +* The Special:WhatLinksHere page linked from 'Number of redirects to this page' + on action=info about a file page does not list file links anymore. === Action API changes in 1.25 === * (T67403) XML tag highlighting is now only performed for formats diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index e7455f6e95..2d60044114 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -338,7 +338,11 @@ class InfoAction extends FormlessAction { $whatLinksHere, $this->msg( 'pageinfo-redirects-name' )->escaped(), array(), - array( 'hidelinks' => 1, 'hidetrans' => 1 ) + array( + 'hidelinks' => 1, + 'hidetrans' => 1, + 'hideimages' => $title->getNamespace() == NS_FILE + ) ), $this->msg( 'pageinfo-redirects-value' ) ->numParams( count( $title->getRedirectsHere() ) )