Ricordisamoa has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/178744

Change subject: Hide file links in action=info's 'Number of redirects to this 
page'
......................................................................

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 06ad0d2551fdeebced15d0759971550e10e305c1,
then removed with commit cdc7e22de9289a3c9f0f74d10dd0f150273df23f,
and finally added back with 725cb284345de61cf019b650ed1161c04c4d7a82.

Change-Id: I0f358e52c38bb525cee8085ca206118ee276889d
---
M RELEASE-NOTES-1.25
M includes/actions/InfoAction.php
2 files changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/44/178744/1

diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25
index 06d2d66..9e728ab 100644
--- a/RELEASE-NOTES-1.25
+++ b/RELEASE-NOTES-1.25
@@ -109,6 +109,8 @@
 ** 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 e7455f6..2d60044 100644
--- a/includes/actions/InfoAction.php
+++ b/includes/actions/InfoAction.php
@@ -338,7 +338,11 @@
                                $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() 
) )

-- 
To view, visit https://gerrit.wikimedia.org/r/178744
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f358e52c38bb525cee8085ca206118ee276889d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to