X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=0a209e98b42464064adaf44049958004a5288752;hb=7dc4f6c83291b005cce83249564ad8a22da51e50;hp=e6b6e1b67e823dbaa5abcf2bac963e2894a3ded8;hpb=affd1dd473c3c453ad68e362385cba17ef9b11f1;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index e6b6e1b67e..0a209e98b4 100644 --- a/img_auth.php +++ b/img_auth.php @@ -186,13 +186,12 @@ function wfImageAuthMain() { * subsequent arguments to $msg2 will be passed as parameters only for replacing in $msg2 * @param string $msg1 * @param string $msg2 + * @param mixed ...$args To pass as params to wfMessage() with $msg2. Either variadic, or a single + * array argument. */ -function wfForbidden( $msg1, $msg2 ) { +function wfForbidden( $msg1, $msg2, ...$args ) { global $wgImgAuthDetails; - $args = func_get_args(); - array_shift( $args ); - array_shift( $args ); $args = ( isset( $args[0] ) && is_array( $args[0] ) ) ? $args[0] : $args; $msgHdr = wfMessage( $msg1 )->escaped();