From b5f01cb273e5932fcf55ac4612f7adaa104e2277 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Thu, 24 Sep 2009 20:46:31 +0000 Subject: [PATCH] (bug 14117) "redirected" from is now also shown on foreign file redirects --- RELEASE-NOTES | 1 + includes/ImagePage.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c445e05646..93fb89dab1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -535,6 +535,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN command line scripts to fail * (bug 20702) Parser functions can now be used correctly in MediaWiki:Missing-article +* (bug 14117) "redirected from" is now also shown on foreign file redirects == API changes in 1.16 == diff --git a/includes/ImagePage.php b/includes/ImagePage.php index f3d8b706b1..05e9e3a378 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -84,6 +84,8 @@ class ImagePage extends Article { if( $this->mTitle->getNamespace() != NS_FILE || ( isset( $diff ) && $diffOnly ) ) return Article::view(); + + $this->showRedirectedFromHeader(); if( $wgShowEXIF && $this->displayImg->exists() ) { // FIXME: bad interface, see note on MediaHandler::formatMetadata(). -- 2.20.1