diff --git a/includes/ImagePage.php b/includes/ImagePage.php index ebbc971937a..6cd7b27da6c 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -25,13 +25,13 @@ class ImagePage extends Article { $this->img = new Image( $this->mTitle ); if( $this->mTitle->getNamespace() == NS_IMAGE ) { - if ( $this->img->exists() ) { + if( $this->img->exists() ) { $this->showTOC(); } $this->openShowImage(); # No need to display noarticletext, we use our own message, output in openShowImage() - if ( $this->getID() ) { + if( $this->getID() ) { Article::view(); } else { # Just need to set the right headers @@ -45,7 +45,9 @@ class ImagePage extends Article { $this->closeShowImage(); $this->imageHistory(); $this->imageLinks(); - if ( $this->img->exists() ) $this->showEXIFdata(); + if( $this->img->exists() ) { + $this->showEXIFdata(); + } } else { Article::view(); } @@ -69,31 +71,35 @@ class ImagePage extends Article { function showEXIFdata() { global $wgOut, $wgShowEXIF; - if ( ! $wgShowEXIF ) return; + if( !$wgShowEXIF ) { + return; + } # Get the EXIF data $exif = $this->img->getExifData(); - if ( count ( $exif ) == 0 ) return; # No EXIF data available + if( count ( $exif ) == 0 ) { + return; # No EXIF data available + } # Create the table - $r = '
| $k | \n"; - $r .= '' . htmlspecialchars($v) . " | \n"; + $r .= '' . wfMsg( 'exif-' . strtolower( $k ) ) . " | \n"; + $r .= '' . htmlspecialchars( $v ) . " | \n"; if ( $n % 2 == 1 ) { $r .= "\n"; + $r .= " | \n"; } $n++; } if ( $n % 2 == 1 ) { - $r .= " | \n"; + $r .= " | \n"; } $wgOut->addHTML( $r . " |
|---|