X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FImageGallery.php;h=43cf7f6c6ae20bd3d4b86e6eeead5179b078b826;hb=876bddf6376fe75952735ee3f231f557c2da48d0;hp=1556ad94429c117c25d3645bafbd6629cf7625cd;hpb=dac3d8d7f28059ba7b30b4b74a5c0ec575c5854a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 1556ad9442..43cf7f6c6a 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -282,11 +282,11 @@ class ImageGallery { $img = false; } - if( !$img ) { + if ( !$img ) { # We're dealing with a non-image, spit out the name and be done with it. $thumbhtml = "\n\t\t\t" . '
' . htmlspecialchars( $nt->getText() ) . '
'; - } elseif( $this->mHideBadImages && wfIsBadImage( $nt->getDBkey(), $this->getContextTitle() ) ) { + } elseif ( $this->mHideBadImages && wfIsBadImage( $nt->getDBkey(), $this->getContextTitle() ) ) { # The image is blacklisted, just show it as a text link. $thumbhtml = "\n\t\t\t" . '
' . Linker::link( @@ -297,12 +297,12 @@ class ImageGallery { array( 'known', 'noclasses' ) ) . '
'; - } elseif( !( $thumb = $img->transform( $params ) ) ) { + } elseif ( !( $thumb = $img->transform( $params ) ) ) { # Error generating thumbnail. $thumbhtml = "\n\t\t\t" . '
' . htmlspecialchars( $img->getLastError() ) . '
'; } else { - $vpad = ( self::THUMB_PADDING + $this->mHeights - $thumb->height ) /2; + $vpad = ( self::THUMB_PADDING + $this->mHeights - $thumb->height ) / 2; $imageParameters = array( 'desc-link' => true, @@ -334,8 +334,8 @@ class ImageGallery { // $linkTarget = Title::newFromText( $wgContLang->getNsText( MWNamespace::getUser() ) . ":{$ut}" ); // $ul = Linker::link( $linkTarget, $ut ); - if( $this->mShowBytes ) { - if( $img ) { + if ( $this->mShowBytes ) { + if ( $img ) { $fileSize = htmlspecialchars( $lang->formatSize( $img->getSize() ) ); } else { $fileSize = wfMessage( 'filemissing' )->escaped();