From 237359a9400a24e072bec37aa6b6107487518b77 Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Tue, 19 Nov 2013 18:04:11 +0100 Subject: [PATCH] Remove no longer needed code for PHP 5.2 compat Change-Id: I9c1f5f12f51274c443084da55447d12b828a9fb0 --- includes/SpecialPage.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 -- 2.20.1