From fbbb56f1eff48752a7fd906882ef06dfe7fee0b9 Mon Sep 17 00:00:00 2001 From: thiemowmde Date: Fri, 26 Apr 2024 13:19:42 +0200 Subject: [PATCH] Stop using the Xml class in this codebase Bug: T341775 Change-Id: I2ccecaccf1558d9c54d88e2d1f43ca59d7157d15 --- includes/Hooks.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Hooks.php b/includes/Hooks.php index 0650746f..276ccf18 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -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() ) {