mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
Stop using the Xml class in this codebase
Bug: T341775 Change-Id: I2ccecaccf1558d9c54d88e2d1f43ca59d7157d15
This commit is contained in:
parent
d5bd9a2532
commit
fbbb56f1ef
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in a new issue