X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FImagePage.php;h=9308195d7cd6ac392cc63e0b4aa1bded35ce7a7b;hb=61b93a4cd93ab770e46eea1f943b5f416862c689;hp=b3a485aac1b50794a60ae919f718cd1c7af86102;hpb=dc348e4df2e79a24e79b21ce265c8b0b481876bf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ImagePage.php b/includes/ImagePage.php index b3a485aac1..9308195d7c 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -206,7 +206,7 @@ class ImagePage extends Article { } // Add remote Filepage.css - if( !$this->repo->isLocal() ) { + if ( !$this->repo->isLocal() ) { $css = $this->repo->getDescriptionStylesheetUrl(); if ( $css ) { $out->addStyle( $css ); @@ -395,6 +395,7 @@ class ImagePage extends Article { $isMulti = $this->displayImg->isMultipage() && $this->displayImg->pageCount() > 1; if ( $isMulti ) { + $out->addModules( 'mediawiki.page.image.pagination' ); $out->addHTML( '
' );
}
@@ -444,7 +445,6 @@ class ImagePage extends Article {
$formParams = array(
'name' => 'pageselector',
'action' => $wgScript,
- 'onchange' => 'document.pageselector.submit();',
);
$options = array();
for ( $i = 1; $i <= $count; $i++ ) {
@@ -597,7 +597,7 @@ EOT
$descText = $this->mPage->getFile()->getDescriptionText();
/* Add canonical to head if there is no local page for this shared file */
- if( $descUrl && $this->mPage->getID() == 0 ) {
+ if ( $descUrl && $this->mPage->getID() == 0 ) {
$out->setCanonicalUrl( $descUrl );
}
@@ -631,7 +631,7 @@ EOT
* external editing (and instructions link) etc.
*/
protected function uploadLinksBox() {
- global $wgEnableUploads, $wgUseExternalEditor;
+ global $wgEnableUploads;
if ( !$wgEnableUploads ) {
return;
@@ -654,25 +654,6 @@ EOT
$out->addHTML( " |