Remove no longer needed code for PHP 5.2 compat
authorjeroendedauw <jeroendedauw@gmail.com>
Tue, 19 Nov 2013 17:04:11 +0000 (18:04 +0100)
committerIAlex <codereview@emsenhuber.ch>
Tue, 19 Nov 2013 17:13:28 +0000 (17:13 +0000)
Change-Id: I9c1f5f12f51274c443084da55447d12b828a9fb0

includes/SpecialPage.php

index 20571d7..b59165d 100644 (file)
@@ -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