Skip to content

Commit

Permalink
Fix issue #30 less.php compiler 1.7.0.3 compile error due to custom f…
Browse files Browse the repository at this point in the history
…ormatter.
  • Loading branch information
ndeet committed Sep 14, 2015
1 parent 1185ab8 commit 53985b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Version 0.8.1 Stable (2015-09-15)
+ fix issue #30: less.php v1.7.0.3 not supporting custom formatters, using "classic instead"

## Version 0.8.0 Stable (2015-05-23)
+ Refactor of class loading and fix autoload by @jeffchannell
+ Adding less.php v1.7.0.3 for latest Bootstrap (3.3+) support, supports also older Bootsrap versions
Expand Down
11 changes: 3 additions & 8 deletions less.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package System Plugin - automatic Less compiler - for Joomla 2.5 and 3.x
* @version 0.8.0 Stable
* @version 0.8.1 Stable
* @author Andreas Tasch
* @copyright (C) 2012-2015 - Andreas Tasch and contributors
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
Expand All @@ -22,7 +22,7 @@ class plgSystemLess extends JPlugin
* @var $app
*/
protected $app;

/**
* override constructor to load classes as soon as possible
* @param $subject
Expand Down Expand Up @@ -183,12 +183,7 @@ function autoCompileLess($inputFile, $outputFile)
}
else
{
$formatter = new lessc_formatter_classic;
$formatter->disableSingle = true;
$formatter->breakSelectors = true;
$formatter->assignSeparator = ": ";
$formatter->selectorSeparator = ",";
$formatter->indentChar = "\t";
$less->setFormatter("classic");
}

//compile cache file
Expand Down
2 changes: 1 addition & 1 deletion less.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<license>GNU General Public License v3; see LICENSE.txt</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.attec.at</authorUrl>
<version>0.8.0</version>
<version>0.8.1</version>
<description>PLG_SYSTEM_LESS_XML_DESC</description>
<files>
<file plugin="less">less.php</file>
Expand Down

0 comments on commit 53985b1

Please sign in to comment.