X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FAction.php;h=6497cab263feca9842c7892a37d9bda152447c7e;hb=81aa6d7a758a000dcd110a2d4d21e50aca6d3444;hp=4be2f7d945c35a1428ffac3061d416c8c0b7b204;hpb=04ffdb9d0aa236837f468c9a2b792846ed3f7358;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/Action.php b/includes/actions/Action.php index 4be2f7d945..6497cab263 100644 --- a/includes/actions/Action.php +++ b/includes/actions/Action.php @@ -252,11 +252,12 @@ abstract class Action implements MessageLocalizer { * Get a Message object with context set * Parameters are the same as wfMessage() * + * @param string|string[]|MessageSpecifier $key + * @param mixed ...$params * @return Message */ - final public function msg( $key ) { - $params = func_get_args(); - return $this->getContext()->msg( ...$params ); + final public function msg( $key, ...$params ) { + return $this->getContext()->msg( $key, ...$params ); } /**