Use array style on adding modules to ParserOutput

String is deprecated

Bug: T296123
Change-Id: I6eb23d299ea922935b514e545af971ee06bb48da
This commit is contained in:
Umherirrender 2022-02-12 02:10:21 +01:00
parent 1833ddaa0f
commit 2b477a92e0

View file

@ -38,7 +38,7 @@ class AJAXPoll {
public static function render( $input, $args = [], Parser $parser, $frame ) {
$parser->getOutput()->updateCacheExpiry( 0 );
$parser->addTrackingCategory( 'ajaxpoll-tracking-category' );
$parser->getOutput()->addModules( 'ext.ajaxpoll' );
$parser->getOutput()->addModules( [ 'ext.ajaxpoll' ] );
// ID of the poll
if ( isset( $args['id'] ) ) {