Fix fatal: Fatal error: func_get_args(): Can't be used as a function parameter in...
authorPlatonides <platonides@users.mediawiki.org>
Fri, 21 Oct 2011 22:18:02 +0000 (22:18 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 21 Oct 2011 22:18:02 +0000 (22:18 +0000)
includes/context/ContextSource.php

index 3ab9168..60e2400 100644 (file)
@@ -118,7 +118,8 @@ abstract class ContextSource implements IContextSource {
         * @return Message object
         */
        public function msg( /* $args */ ) {
-               return call_user_func_array( array( $this->getContext(), 'msg' ), func_get_args() );
+               $args = func_get_args();
+               return call_user_func_array( array( $this->getContext(), 'msg' ), $args );
        }
 }