From: Victor Vasiliev Date: Fri, 7 Dec 2007 19:32:52 +0000 (+0000) Subject: * Fix an invalid XHTML (strict) on images X-Git-Tag: 1.31.0-rc.0~50502 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=2e190d03afe365af361c5a92f81de99da7658862;p=lhc%2Fweb%2Fwiklou.git * Fix an invalid XHTML (strict) on images --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b03a294695..e31a7377a7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -227,6 +227,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN lines in diff output * (bug 10166) Fix a PHP warning in Language::getMagic * Only mark rollback edits as minor if the user can normally mark edits as minor. +* Fix an invalid XHTML (strict) on images == Parser changes in 1.12 == diff --git a/includes/MediaTransformOutput.php b/includes/MediaTransformOutput.php index c6cf9ac2f0..5dc6cd8b9c 100644 --- a/includes/MediaTransformOutput.php +++ b/includes/MediaTransformOutput.php @@ -151,7 +151,7 @@ class ThumbnailImage extends MediaTransformOutput { 'src' => $this->url, 'width' => $this->width, 'height' => $this->height, - 'border' => 0, + 'style' => 'border: none', ); if ( !empty( $options['valign'] ) ) { $attribs['style'] = "vertical-align: {$options['valign']}";