Ori.livneh has uploaded a new change for review. https://gerrit.wikimedia.org/r/85904
Change subject: Update lessphp to upstream head (785ad53840) ...................................................................... Update lessphp to upstream head (785ad53840) This patch updates lessc.inc.php to 785ad53840: <https://github.com/leafo/lessphp/commit/785ad53840b1777ef2120a10dcb2a5d5e6699f36>. Differences from our version: - Updated year in copyright notice - Added support for 'precision' parameter to round(). Change-Id: If22afea96741c6d8fedefc05c49b24ae6e7809b0 --- M includes/libs/lessc.inc.php 1 file changed, 10 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/04/85904/1 diff --git a/includes/libs/lessc.inc.php b/includes/libs/lessc.inc.php index a767edc..6db21be 100644 --- a/includes/libs/lessc.inc.php +++ b/includes/libs/lessc.inc.php @@ -1,7 +1,7 @@ <?php /** - * lessphp v0.4.0 + * lessphp v0.4.0@785ad53840 * http://leafo.net/lessphp * * LESS css compiler, adapted from http://lesscss.org @@ -11,7 +11,7 @@ * * MIT LICENSE * - * Copyright (c) 2010-2012 Leaf Corcoran, http://leafo.net/lessphp + * Copyright 2013, Leaf Corcoran <[email protected]> * * 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 @@ } 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) { -- To view, visit https://gerrit.wikimedia.org/r/85904 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If22afea96741c6d8fedefc05c49b24ae6e7809b0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Ori.livneh <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
