From: Brad Jorsch Date: Tue, 20 Aug 2019 13:52:54 +0000 (-0400) Subject: ApiSandbox: Load mediawiki.hlist RL module X-Git-Tag: 1.34.0-rc.0~662^2 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E//%22%22?a=commitdiff_plain;h=c994009caf68b5c2a9843564b387bf4978cfd81b;p=lhc%2Fweb%2Fwiklou.git ApiSandbox: Load mediawiki.hlist RL module The default l10n for the main module's description uses the hlist class, so load it. It might make more sense to have it as a module dependency of an appropriate RL module like mediawiki.apipretty instead of requiring every caller to load it manually, but it seems that's not really done because RL is weird about handling CSS-only modules as dependencies. Bug: T230782 Change-Id: I6493d7d789f3cebee737645528cddfb1d3acb1d7 --- diff --git a/includes/specials/SpecialApiSandbox.php b/includes/specials/SpecialApiSandbox.php index 034e569e6c..9e496845f8 100644 --- a/includes/specials/SpecialApiSandbox.php +++ b/includes/specials/SpecialApiSandbox.php @@ -38,6 +38,7 @@ class SpecialApiSandbox extends SpecialPage { $out->addJsConfigVars( 'apihighlimits', $this->getUser()->isAllowed( 'apihighlimits' ) ); $out->addModuleStyles( [ 'mediawiki.special', + 'mediawiki.hlist', ] ); $out->addModules( [ 'mediawiki.special.apisandbox',