X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FImagePage.php;h=d37700b58d746aabb7fa24ed6899579b5dd10de1;hb=ba42dabb6b57f51a252fae4318742c49a7faafff;hp=6a751ac7069c4b88d9e4120642bffecd609f42b1;hpb=022d6ab817b3e66262d97317e25644fc5b4594af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index 6a751ac706..d37700b58d 100644 --- a/includes/page/ImagePage.php +++ b/includes/page/ImagePage.php @@ -115,23 +115,11 @@ class ImagePage extends Article { if ( $this->getTitle()->getNamespace() == NS_FILE && $this->mPage->getFile()->getRedirected() ) { if ( $this->getTitle()->getDBkey() == $this->mPage->getFile()->getName() || $diff !== null ) { - // mTitle is the same as the redirect target so ask Article - // to perform the redirect for us. $request->setVal( 'diffonly', 'true' ); - parent::view(); - return; - } else { - // mTitle is not the same as the redirect target so it is - // probably the redirect page itself. Fake the redirect symbol - $out->setPageTitle( $this->getTitle()->getPrefixedText() ); - $out->addHTML( $this->viewRedirect( - Title::makeTitle( NS_FILE, $this->mPage->getFile()->getName() ), - /* $appendSubtitle */ true, - /* $forceKnown */ true ) - ); - $this->mPage->doViewUpdates( $this->getContext()->getUser(), $this->getOldID() ); - return; } + + parent::view(); + return; } if ( $wgShowEXIF && $this->displayImg->exists() ) {