summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
512ed8d)
Imports eventually succeed but the log fills up with stack traces
needlessly.
Bug: T206013
Change-Id: Icb004954272ea8fc6fbc4fd5090cd1310d66946c
/**
* look for XML formats (XHTML and SVG)
*/
/**
* look for XML formats (XHTML and SVG)
*/
+ Wikimedia\suppressWarnings();
$xml = new XmlTypeCheck( $file );
$xml = new XmlTypeCheck( $file );
+ Wikimedia\restoreWarnings();
if ( $xml->wellFormed ) {
$xmlTypes = $this->xmlTypes;
return $xmlTypes[$xml->getRootElement()] ?? 'application/xml';
if ( $xml->wellFormed ) {
$xmlTypes = $this->xmlTypes;
return $xmlTypes[$xml->getRootElement()] ?? 'application/xml';