From: Ori Livneh Date: Tue, 24 Sep 2013 19:31:17 +0000 (-0700) Subject: Update lessphp to upstream head (785ad53840) X-Git-Tag: 1.31.0-rc.0~18691 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=ad429498c153bbeac1fcb6e89f902e6240707945;p=lhc%2Fweb%2Fwiklou.git Update lessphp to upstream head (785ad53840) This patch updates lessc.inc.php to 785ad53840: . Differences from our version: - Updated year in copyright notice - Added support for 'precision' parameter to round(). Change-Id: If22afea96741c6d8fedefc05c49b24ae6e7809b0 --- diff --git a/includes/libs/lessc.inc.php b/includes/libs/lessc.inc.php index a767edce16..6db21beb9c 100644 --- a/includes/libs/lessc.inc.php +++ b/includes/libs/lessc.inc.php @@ -1,7 +1,7 @@ * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -1037,8 +1037,14 @@ class lessc { } protected function lib_round($arg) { - $value = $this->assertNumber($arg); - return array("number", round($value), $arg[2]); + if($arg[0] != "list") { + $value = $this->assertNumber($arg); + return array("number", round($value), $arg[2]); + } else { + $value = $this->assertNumber($arg[2][0]); + $precision = $this->assertNumber($arg[2][1]); + return array("number", round($value, $precision), $arg[2][0][2]); + } } protected function lib_unit($arg) {