X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FImageGallery.php;h=43cf7f6c6ae20bd3d4b86e6eeead5179b078b826;hb=9688fe9e8ed621ce90a47b1344902f3d794ca590;hp=8f8022f3d12909611ae13c776182f03bf6d17066;hpb=467c28ec57a5fc157e0016f1316887753ef2ff07;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 8f8022f3d1..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,7 +297,7 @@ 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() ) . '
'; @@ -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();