resourceloader: Add $conf parameter to the 'ResourceLoaderGetConfigVars' hook
authorJack Phoenix <ashley@uncyclomedia.co>
Fri, 6 Sep 2019 16:37:42 +0000 (19:37 +0300)
committerKrinkle <krinklemail@gmail.com>
Sat, 7 Sep 2019 15:30:40 +0000 (15:30 +0000)
Change-Id: I3cca8ce87b303ef7dfd96bfe1fdda0c51c441f6f

docs/hooks.txt
includes/resourceloader/ResourceLoaderStartUpModule.php

index b7ea02c..a248c29 100644 (file)
@@ -2827,6 +2827,7 @@ or request state must be added through MakeGlobalVariablesScript instead.
 Skin is made available for skin specific config.
 &$vars: [ variable name => value ]
 $skin: Skin
 Skin is made available for skin specific config.
 &$vars: [ variable name => value ]
 $skin: Skin
+$config: Config object (since 1.34)
 
 'ResourceLoaderJqueryMsgModuleMagicWords': Called in
 ResourceLoaderJqueryMsgModule to allow adding magic words for jQueryMsg.
 
 'ResourceLoaderJqueryMsgModuleMagicWords': Called in
 ResourceLoaderJqueryMsgModule to allow adding magic words for jQueryMsg.
index d4a34f3..9f583a5 100644 (file)
@@ -121,7 +121,7 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule {
                        'wgCommentCodePointLimit' => CommentStore::COMMENT_CHARACTER_LIMIT,
                ];
 
                        'wgCommentCodePointLimit' => CommentStore::COMMENT_CHARACTER_LIMIT,
                ];
 
-               Hooks::run( 'ResourceLoaderGetConfigVars', [ &$vars, $skin ] );
+               Hooks::run( 'ResourceLoaderGetConfigVars', [ &$vars, $skin, $conf ] );
 
                return $vars;
        }
 
                return $vars;
        }