$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;
}
}
*/
public $top;
public $out;
- public $elementClass = 'PPDStackElement';
+ public $elementClass = PPDStackElement::class;
public static $false = false;
*/
public $lineStart;
- public $partClass = 'PPDPart';
+ public $partClass = PPDPart::class;
public function __construct( $data = [] ) {
$class = $this->partClass;