| Index: trunk/phase3/includes/ImageGallery.php |
| — | — | @@ -227,7 +227,8 @@ |
| 228 | 228 | |
| 229 | 229 | if ( $this->mPerRow > 0 ) { |
| 230 | 230 | $maxwidth = $this->mPerRow * ( $this->mWidths + 50 ); |
| 231 | | - $this->mAttribs['style'] = "max-width: {$maxwidth}px;_width: {$maxwidth}px;"; |
| | 231 | + $oldStyle = isset( $this->mAttribs['style'] ) ? $this->mAttribs['style'] : ""; |
| | 232 | + $this->mAttribs['style'] = "max-width: {$maxwidth}px;_width: {$maxwidth}px;" . $oldStyle; |
| 232 | 233 | } |
| 233 | 234 | |
| 234 | 235 | $attribs = Sanitizer::mergeAttributes( |