From: Tim Starling Date: Tue, 8 Feb 2011 12:25:39 +0000 (+0000) Subject: Make SVGMetadataExtractor less noisy when it reads SVGs from Adobe Illustrator. X-Git-Tag: 1.31.0-rc.0~32116 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=44eefff24c088ded89ad02dab4516b94e8c3aca5;p=lhc%2Fweb%2Fwiklou.git Make SVGMetadataExtractor less noisy when it reads SVGs from Adobe Illustrator. --- diff --git a/includes/media/SVGMetadataExtractor.php b/includes/media/SVGMetadataExtractor.php index 93654fabce..5291b30e32 100644 --- a/includes/media/SVGMetadataExtractor.php +++ b/includes/media/SVGMetadataExtractor.php @@ -48,7 +48,7 @@ class SVGReader { */ function __construct( $source ) { $this->reader = new XMLReader(); - $this->reader->open( $source ); + $this->reader->open( $source, null, LIBXML_NOERROR | LIBXML_NOWARNING ); $this->metadata['width'] = self::DEFAULT_WIDTH; $this->metadata['height'] = self::DEFAULT_HEIGHT;