r81729 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81728‎ | r81729 | r81730 >
Date:12:25, 8 February 2011
Author:tstarling
Status:ok
Tags:
Comment:
Make SVGMetadataExtractor less noisy when it reads SVGs from Adobe Illustrator.
Modified paths:
  • /trunk/phase3/includes/media/SVGMetadataExtractor.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/media/SVGMetadataExtractor.php
@@ -48,7 +48,7 @@
4949 */
5050 function __construct( $source ) {
5151 $this->reader = new XMLReader();
52 - $this->reader->open( $source );
 52+ $this->reader->open( $source, null, LIBXML_NOERROR | LIBXML_NOWARNING );
5353
5454 $this->metadata['width'] = self::DEFAULT_WIDTH;
5555 $this->metadata['height'] = self::DEFAULT_HEIGHT;

Follow-up revisions

RevisionCommit summaryAuthorDate
r819211.17wmf1: MFT r81729, r81890, r81891, r81892, r81893, r81894, r81896, r81897,...catrope22:42, 10 February 2011
r85148MFT: r80495, r80610, r80765, r81177, r81490, r81692, r81707, r81729, r81765, ...demon20:11, 1 April 2011

Status & tagging log