Index: ImagePage.php =================================================================== --- ImagePage.php (revision 83254) +++ ImagePage.php (working copy) @@ -77,16 +77,11 @@ // mTitle is the same as the redirect target so ask Article // to perform the redirect for us. $wgRequest->setVal( 'diffonly', 'true' ); - return parent::view(); - } else { - // mTitle is not the same as the redirect target so it is - // probably the redirect page itself. Fake the redirect symbol - $wgOut->setPageTitle( $this->mTitle->getPrefixedText() ); - $wgOut->addHTML( $this->viewRedirect( Title::makeTitle( NS_FILE, $this->img->getName() ), - /* $appendSubtitle */ true, /* $forceKnown */ true ) ); - $this->viewUpdates(); - return; } + // Else mTitle is not the same as the redirect target so it is + // probably the redirect page itself. + + return parent::view(); } $this->showRedirectedFromHeader();