diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-10-11 10:41:57 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-10-11 10:41:57 +0200 |
commit | 7d247a3cecc7d9f7d6e3c84a3589c591d7ed09c0 (patch) | |
tree | d517db5009b45cc6dc55fad2c5a8ddf72153d81d /lib/exe | |
parent | da9572711f54d13ce3c5506971154b0bc359723f (diff) | |
download | rpg-7d247a3cecc7d9f7d6e3c84a3589c591d7ed09c0.tar.gz rpg-7d247a3cecc7d9f7d6e3c84a3589c591d7ed09c0.tar.bz2 |
preserve comments in less if 'compress' config disabled
Otherwise comments are never visible in css.php
Diffstat (limited to 'lib/exe')
-rw-r--r-- | lib/exe/css.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php index 6c1d60751..f7235fd4e 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -166,8 +166,11 @@ function css_out(){ * @return string */ function css_parseless($css) { + global $conf; + $less = new lessc(); $less->importDir[] = DOKU_INC; + $less->setPreserveComments(!$conf['compress']); if (defined('DOKU_UNITTEST')){ $less->importDir[] = TMP_DIR; |