X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FImageGallery.php;h=4d5f067ca7dcd23bfab19f5d4cccfbfa1b37b7ad;hb=48bbe8b848fd7021a0d32729b9c8c77038762fa1;hp=cc561b4bd650509def4893e24fad29da096f9ad1;hpb=26dae00964e18e42f469f3a32b5d47c702db9441;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index cc561b4bd6..4d5f067ca7 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -58,6 +58,8 @@ class ImageGallery { /** * Register a parser object + * + * @param $parser Parser */ function setParser( $parser ) { $this->mParser = $parser; @@ -219,7 +221,7 @@ class ImageGallery { if ( $this->mPerRow > 0 ) { $maxwidth = $this->mPerRow * ( $this->mWidths + self::THUMB_PADDING + self::GB_PADDING + self::GB_BORDERS ); - $oldStyle = isset( $this->mAttribs['style'] ) ? $this->mAttribs['style'] : ''; + $oldStyle = isset( $this->mAttribs['style'] ) ? $this->mAttribs['style'] : ''; # _width is ignored by any sane browser. IE6 doesn't know max-width so it uses _width instead $this->mAttribs['style'] = "max-width: {$maxwidth}px;_width: {$maxwidth}px;" . $oldStyle; } @@ -279,10 +281,7 @@ class ImageGallery { $thumbhtml = "\n\t\t\t" . '