Fixed a bug in __construct
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 31 Mar 2010 10:10:49 +0000 (10:10 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 31 Mar 2010 10:10:49 +0000 (10:10 +0000)
includes/Message.php

index a28d082..c4ac5ec 100644 (file)
@@ -116,7 +116,9 @@ class Message {
         * @return Message: $this
         */
        public static function key( $key /*...*/ ) {
-               return new self( $key, array_shift( func_get_args() ) );
+               $params = func_get_args();
+               array_shift( $params );
+               return new self( $key, $params );
        }
 
        /**