Fixes bug 34715 Image redirects show the "redirected from" subtitle twice.
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Sat, 25 Feb 2012 20:30:38 +0000 (20:30 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Sat, 25 Feb 2012 20:30:38 +0000 (20:30 +0000)
ImagePage no longer needs to set the "redirectedfrom" header by itself. Seems Article.php is taking care of it now. I suspect this was caused by the refactoring of WikiPage, Article, etc.

includes/ImagePage.php

index cc2d5df..7e72db9 100644 (file)
@@ -109,8 +109,6 @@ class ImagePage extends Article {
                        }
                }
 
-               $this->showRedirectedFromHeader();
-
                if ( $wgShowEXIF && $this->displayImg->exists() ) {
                        // @todo FIXME: Bad interface, see note on MediaHandler::formatMetadata().
                        $formattedMetadata = $this->displayImg->formatMetadata();