X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fresourceloader%2FResourceLoaderContext.php;h=f99114e2b96faff3165aed4710f276d05a8c1607;hb=12601ff7d2796752404bfb331fccc41083d31f9f;hp=8955b8c2a0feca13b8cd0761ab546a6c079b15f5;hpb=5300df4838f68437c17d5d697de57a46f0b5e02c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/ResourceLoaderContext.php b/includes/resourceloader/ResourceLoaderContext.php index 8955b8c2a0..f99114e2b9 100644 --- a/includes/resourceloader/ResourceLoaderContext.php +++ b/includes/resourceloader/ResourceLoaderContext.php @@ -29,7 +29,7 @@ use MediaWiki\MediaWikiServices; * Object passed around to modules which contains information about the state * of a specific loader request. */ -class ResourceLoaderContext { +class ResourceLoaderContext implements MessageLocalizer { protected $resourceLoader; protected $request; protected $logger; @@ -222,10 +222,12 @@ class ResourceLoaderContext { * Get a Message object with context set. See wfMessage for parameters. * * @since 1.27 + * @param string|string[]|MessageSpecifier $key Message key, or array of keys, + * or a MessageSpecifier. * @param mixed ... * @return Message */ - public function msg() { + public function msg( $key ) { return call_user_func_array( 'wfMessage', func_get_args() ) ->inLanguage( $this->getLanguage() ) // Use a dummy title because there is no real title