From: jeroendedauw Date: Tue, 19 Nov 2013 17:04:11 +0000 (+0100) Subject: Remove no longer needed code for PHP 5.2 compat X-Git-Tag: 1.31.0-rc.0~18037 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=237359a9400a24e072bec37aa6b6107487518b77;p=lhc%2Fweb%2Fwiklou.git Remove no longer needed code for PHP 5.2 compat Change-Id: I9c1f5f12f51274c443084da55447d12b828a9fb0 --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 20571d7135..b59165d071 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -833,12 +833,10 @@ class SpecialPage { * @see wfMessage */ public function msg( /* $args */ ) { - // Note: can't use func_get_args() directly as second or later item in - // a parameter list until PHP 5.3 or you get a fatal error. - // Works fine as the first parameter, which appears elsewhere in the - // code base. Sighhhh. - $args = func_get_args(); - $message = call_user_func_array( array( $this->getContext(), 'msg' ), $args ); + $message = call_user_func_array( + array( $this->getContext(), 'msg' ), + func_get_args() + ); // 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