X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fgallery%2FTraditionalImageGallery.php;h=a87322d46d7084fec0cffb6323496f52fc8e9f7c;hb=138298b397b308ad6e4bfc7088884d90e8ac1e37;hp=cd6aab0f88d53a7153982b5a70802fa9d0c75d53;hpb=0db03df62e8acd435fe3623eb70c5be0136bec64;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/gallery/TraditionalImageGallery.php b/includes/gallery/TraditionalImageGallery.php index cd6aab0f88..a87322d46d 100644 --- a/includes/gallery/TraditionalImageGallery.php +++ b/includes/gallery/TraditionalImageGallery.php @@ -35,7 +35,7 @@ class TraditionalImageGallery extends ImageGalleryBase { function toHTML() { if ( $this->mPerRow > 0 ) { $maxwidth = $this->mPerRow * ( $this->mWidths + $this->getAllPadding() ); - $oldStyle = isset( $this->mAttribs['style'] ) ? $this->mAttribs['style'] : ''; + $oldStyle = $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;" .