X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FImagePage.php;h=a5beb5d983b10be48feca57e66a796440dd7bb1a;hb=c58873fb4213447615761a55fd2be72fa53f8ec2;hp=b5b69df20dab8fca06a21db4fdb83eac62b9df3a;hpb=34030158811f858efa57e09f0ac1ae66bc85fac2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ImagePage.php b/includes/ImagePage.php index b5b69df20d..a5beb5d983 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 ); @@ -250,7 +250,7 @@ class ImagePage extends Article { * * @todo FIXME: Bad interface, see note on MediaHandler::formatMetadata(). * - * @param array $metadata the array containing the EXIF data + * @param array $metadata the array containing the Exif data * @return String The metadata table. This is treated as Wikitext (!) */ protected function makeMetadataTable( $metadata ) { @@ -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( "
  • " . $this->getContext()->msg( 'upload-disallowed-here' )->escaped() . "
  • \n" ); } - # External editing link - if ( $wgUseExternalEditor ) { - $elink = Linker::linkKnown( - $this->getTitle(), - wfMessage( 'edit-externally' )->escaped(), - array(), - array( - 'action' => 'edit', - 'externaledit' => 'true', - 'mode' => 'file' - ) - ); - $out->addHTML( - '
  • ' . $elink . ' ' . - wfMessage( 'edit-externally-help' )->parse() . - "
  • \n" - ); - } - $out->addHTML( "\n" ); } @@ -772,7 +753,7 @@ EOT // Create links for every element $currentCount = 0; - foreach( $rows as $element ) { + foreach ( $rows as $element ) { $currentCount++; if ( $currentCount > $limit ) { break;