X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FImagePage.php;h=d37700b58d746aabb7fa24ed6899579b5dd10de1;hb=97c5bc0a1ea20ed4f6c3e26b97dcd5d6f360a8ce;hp=f8202a6cb27acb7ba57ecbd653aae31978f04f0a;hpb=904faf281ae365cf4d1575d7a5ac8617b3323b2e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index f8202a6cb2..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() ) { @@ -434,7 +422,7 @@ class ImagePage extends Article { $count = $this->displayImg->pageCount(); if ( $page > 1 ) { - $label = $out->parse( $this->getContext()->msg( 'imgmultipageprev' )->text(), false ); + $label = $this->getContext()->msg( 'imgmultipageprev' )->text(); // on the client side, this link is generated in ajaxifyPageNavigation() // in the mediawiki.page.image.pagination module $link = Linker::linkKnown( @@ -494,6 +482,7 @@ class ImagePage extends Article { Xml::openElement( 'form', $formParams ) . Html::hidden( 'title', $this->getTitle()->getPrefixedDBkey() ) . $this->getContext()->msg( 'imgmultigoto' )->rawParams( $select )->parse() . + $this->getContext()->msg( 'word-separator' )->escaped() . Xml::submitButton( $this->getContext()->msg( 'imgmultigo' )->text() ) . Xml::closeElement( 'form' ) . "
$thumb1\n$thumb2
"