Stop using the Xml class in this codebase

Bug: T341775
Change-Id: I2ccecaccf1558d9c54d88e2d1f43ca59d7157d15
This commit is contained in:
thiemowmde 2024-04-26 13:19:42 +02:00
parent d5bd9a2532
commit fbbb56f1ef

View file

@ -55,7 +55,6 @@ use Parser;
use PPFrame;
use UtfNormal\Validator;
use Wikimedia\PSquare;
use Xml;
/**
* Hooks for the Scribunto extension.
@ -419,7 +418,7 @@ class Hooks implements
$line = $validateStatus->value->params['line'];
if ( $module === $title->getPrefixedDBkey() && preg_match( '/^\d+$/', $line ) ) {
$out = $context->getOutput();
$out->addInlineScript( 'window.location.hash = ' . Xml::encodeJsVar( "#mw-ce-l$line" ) );
$out->addInlineScript( 'window.location.hash = ' . Html::encodeJsVar( "#mw-ce-l$line" ) );
}
}
if ( !$status->isOK() ) {