(bug 14117) "redirected" from is now also shown on foreign file redirects

This commit is contained in:
Bryan Tong Minh 2009-09-24 20:46:31 +00:00
parent 69f1435fd3
commit b5f01cb273
2 changed files with 3 additions and 0 deletions

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

View 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().