From: Niklas Laxström Date: Wed, 31 Mar 2010 10:10:49 +0000 (+0000) Subject: Fixed a bug in __construct X-Git-Tag: 1.31.0-rc.0~37292 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=f33313abdcf8d735c728074c0aea8476cfed5846;p=lhc%2Fweb%2Fwiklou.git Fixed a bug in __construct --- 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 ); } /**