when getting file (img) properties, suppress whines that it's not xml
[lhc/web/wiklou.git] / includes / libs / mime / MimeAnalyzer.php
index 8d842cb..d6c87b6 100644 (file)
@@ -760,7 +760,9 @@ EOT;
                /**
                 * look for XML formats (XHTML and SVG)
                 */
+               Wikimedia\suppressWarnings();
                $xml = new XmlTypeCheck( $file );
+               Wikimedia\restoreWarnings();
                if ( $xml->wellFormed ) {
                        $xmlTypes = $this->xmlTypes;
                        if ( isset( $xmlTypes[$xml->getRootElement()] ) ) {