Make SVGMetadataExtractor less noisy when it reads SVGs from Adobe Illustrator.
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 8 Feb 2011 12:25:39 +0000 (12:25 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 8 Feb 2011 12:25:39 +0000 (12:25 +0000)
includes/media/SVGMetadataExtractor.php

index 93654fa..5291b30 100644 (file)
@@ -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;