LESS embeddable(): Use lessc::toBool
authorOri Livneh <ori@wikimedia.org>
Fri, 4 Oct 2013 00:50:45 +0000 (17:50 -0700)
committerOri Livneh <ori@wikimedia.org>
Fri, 4 Oct 2013 00:53:36 +0000 (17:53 -0700)
commit09b78734365543f5196eb13fc0b3ace00ca22d81
tree96d3561ad1a0036493d5b1bc825cf47cff3b834c
parentcf5fa6d2fd395a3bfb07c33ffbcbe69022c66eae
LESS embeddable(): Use lessc::toBool

With Ib6bc76736 in place, we have access to lessphp's custom function helpers,
which provide some nice encapsulation for interpreter internals like boolean
nodes. This patch makes embeddable() call $less->toBool() rather than construct
its own AST nodes.

Change-Id: I0a015564dff19f5ced764af182558eb351e3d816
includes/resourceloader/ResourceLoaderLESSFunctions.php