From 2e190d03afe365af361c5a92f81de99da7658862 Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Fri, 7 Dec 2007 19:32:52 +0000 Subject: [PATCH] * Fix an invalid XHTML (strict) on images --- RELEASE-NOTES | 1 + includes/MediaTransformOutput.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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']}"; -- 2.20.1