X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecialpage%2FSpecialPage.php;h=1400d35db2208581e93d08f92a4373c40098e369;hp=ba8e318bcd293514aab391050834c79210b27f8c;hb=81aa6d7a758a000dcd110a2d4d21e50aca6d3444;hpb=7baed424895d4fe38aa8a7215384724685eca88f diff --git a/includes/specialpage/SpecialPage.php b/includes/specialpage/SpecialPage.php index ba8e318bcd..1400d35db2 100644 --- a/includes/specialpage/SpecialPage.php +++ b/includes/specialpage/SpecialPage.php @@ -784,11 +784,13 @@ class SpecialPage implements MessageLocalizer { * Wrapper around wfMessage that sets the current context. * * @since 1.16 + * @param string|string[]|MessageSpecifier $key + * @param mixed ...$params * @return Message * @see wfMessage */ - public function msg( $key /* $args */ ) { - $message = $this->getContext()->msg( ...func_get_args() ); + public function msg( $key, ...$params ) { + $message = $this->getContext()->msg( $key, ...$params ); // RequestContext passes context to wfMessage, and the language is set from // the context, but setting the language for Message class removes the // interface message status, which breaks for example usernameless gender