From e11e222917a38648b921daf7ada1e985db4f56a6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 7 Dec 2007 21:43:22 +0000 Subject: [PATCH] Revert r28253 -- unnecessary markup tweak which could override specified styles --- RELEASE-NOTES | 1 - includes/MediaTransformOutput.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e31a7377a7..b03a294695 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -227,7 +227,6 @@ 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 5dc6cd8b9c..c6cf9ac2f0 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, - 'style' => 'border: none', + 'border' => 0, ); if ( !empty( $options['valign'] ) ) { $attribs['style'] = "vertical-align: {$options['valign']}"; -- 2.20.1