X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=8912b82b70d1d28bb04f97db11f652c521abb7ef;hb=40a9ad6ea1cd300075eecf43e70cc8ade8828919;hp=3ff33655495a92dfad0b4af355874f7434058606;hpb=6817a4336002698db9a92a362c6b20e243477033;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 3ff3365549..8912b82b70 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -2764,9 +2764,10 @@ configuration variables to JavaScript. Things that depend on the current page or request state must be added through MakeGlobalVariablesScript instead. &$vars: array( variable name => value ) -'ResourceLoaderGetLessVars': Called in ResourceLoader::getLessVars after -variables from $wgResourceLoaderLESSVars are added. Can be used to add -context-based variables. +'ResourceLoaderGetLessVars': DEPRECATED! Called in ResourceLoader::getLessVars +to add global LESS variables. Loaded after $wgResourceLoaderLESSVars is added. +Global LESS variables are deprecated. Use ResourceLoaderModule::getLessVars() +instead to expose variables only in modules that need them. &$lessVars: array of variables already added 'ResourceLoaderJqueryMsgModuleMagicWords': Called in