Skip to content

Commit

Permalink
use newer addModules syntax (closes #15) (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-g committed Jan 25, 2023
1 parent 1eb9703 commit 9fede29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ScratchblockHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function onResourceLoaderGetConfigVars(array &$vars, $skin, Config $confi
public static function sb4Setup(Parser $parser) {
$out = $parser->getOutput();
if (!in_array(SB4_MODULE_KEY, $out->getModules())) {
$out->addModules(SB4_MODULE_KEY);
$out->addModules([ SB4_MODULE_KEY ]);
}
}

Expand Down

0 comments on commit 9fede29

Please sign in to comment.