X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FImagePage.php;h=5d4274d3ef3da14b197cf2979626966ca28531cc;hb=0db8ece2b11070d5cd923743af27ed4ba8429042;hp=4d090d522207a0f49f522f008447ecf525a9973d;hpb=af2177edfd9b108eca8598f9ace57672f0521942;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 4d090d5222..5d4274d3ef 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -27,7 +27,7 @@ class ImagePage extends Article { } function view() { - global $wgUseExternalEditor, $wgOut, $wgShowEXIF; + global $wgOut, $wgShowEXIF; $this->img = new Image( $this->mTitle ); @@ -44,8 +44,6 @@ class ImagePage extends Article { $wgOut->addHTML($this->showTOC($showmeta)); $this->openShowImage(); - if ($exif) - $wgOut->addWikiText($this->makeMetadataTable($exif)); # No need to display noarticletext, we use our own message, output in openShowImage() if( $this->getID() ) { @@ -69,6 +67,16 @@ class ImagePage extends Article { $this->closeShowImage(); $this->imageHistory(); $this->imageLinks(); + if( $exif ) { + global $wgStylePath; + $expand = htmlspecialchars( wfEscapeJsString( wfMsg( 'metadata-expand' ) ) ); + $collapse = htmlspecialchars( wfEscapeJsString( wfMsg( 'metadata-collapse' ) ) ); + $wgOut->addHTML( "