From 0a3b28d3deec97529e1914912caa389bf7739c8b Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Tue, 11 Jan 2022 17:02:39 -0500 Subject: [PATCH] Passing a string to ParserOutput::addModules()/addModuleStyles() is deprecated Bug: T296123 Change-Id: I9b7fe5acee73c3a378153c0820b46816164ebf21 --- includes/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Hooks.php b/includes/Hooks.php index 7e22066d..3aac7704 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -220,7 +220,7 @@ class Hooks { 'ext.templateData.images', 'jquery.tablesorter.styles', ] ); - $parser->getOutput()->addModules( 'jquery.tablesorter' ); + $parser->getOutput()->addModules( [ 'jquery.tablesorter' ] ); $parser->getOutput()->setEnableOOUI( true ); $userLang = $parser->getOptions()->getUserLangObj();