From f33313abdcf8d735c728074c0aea8476cfed5846 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 31 Mar 2010 10:10:49 +0000 Subject: [PATCH] Fixed a bug in __construct --- includes/Message.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Message.php b/includes/Message.php index a28d082516..c4ac5ecf67 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -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 ); } /** -- 2.20.1