(bug 14117) "redirected" from is now also shown on foreign file redirects
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 24 Sep 2009 20:46:31 +0000 (20:46 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 24 Sep 2009 20:46:31 +0000 (20:46 +0000)
RELEASE-NOTES
includes/ImagePage.php

index c445e05..93fb89d 100644 (file)
@@ -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 ==
 
index f3d8b70..05e9e3a 100644 (file)
@@ -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().