summaryrefslogtreecommitdiff
path: root/lib/exe/css.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-11-05 20:15:00 +0000
committerChristopher Smith <chris@jalakai.co.uk>2013-11-05 20:15:00 +0000
commit30f686eb67205a1da8765c992e2f9ee1a158c712 (patch)
tree13949c2e155a80d32fd4bac5e17030ed0ee6718e /lib/exe/css.php
parent5f5982130c1a9b9adb0e294b811327ddcfbd4fef (diff)
downloadrpg-30f686eb67205a1da8765c992e2f9ee1a158c712.tar.gz
rpg-30f686eb67205a1da8765c992e2f9ee1a158c712.tar.bz2
add DOKU_INC to less import directories
Diffstat (limited to 'lib/exe/css.php')
-rw-r--r--lib/exe/css.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php
index f0bd24b43..bc0645400 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -173,6 +173,12 @@ function css_out(){
*/
function css_parseless($css) {
$less = new lessc();
+ $less->importDir[] = DOKU_INC;
+
+ if (defined('DOKU_UNITTEST')){
+ $less->importDir[] = TMP_DIR;
+ }
+
try {
return $less->compile($css);
} catch(Exception $e) {