$xml .= "</list>";
$dom = new DOMDocument();
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$result = $dom->loadXML( $xml );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( !$result ) {
// Try running the XML through UtfNormal to get rid of invalid characters
$xml = UtfNormal\Validator::cleanUp( $xml );
}
$dom = new DOMDocument;
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$result = $dom->loadXML( $xml );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( !$result ) {
// Try running the XML through UtfNormal to get rid of invalid characters
$xml = UtfNormal\Validator::cleanUp( $xml );
$stack->getCurrentPart()->eqpos = strlen( $accum );
$accum .= '=';
++$i;
- } elseif ( $found == 'dash' ) {
- $accum .= '-';
- ++$i;
}
}