Permalink
Browse files

- client side compilation by default

- fix in inherittance
- config::isClientSideCompilation() fix
  • Loading branch information...
1 parent 888ba4c commit e97159d394ff9c52091ec59526b8de56134b2b13 @everzet committed Jul 27, 2010
Showing with 4 additions and 5 deletions.
  1. +2 −3 lib/config/LESSConfig.class.php
  2. +2 −2 lib/config/sfLESSConfig.class.php
View
5 lib/config/LESSConfig.class.php
@@ -37,8 +37,7 @@ class LESSConfig
*
* @var boolean
*/
- protected $compileClientSide = false;
-
+ protected $compileClientSide = true;
/**
* Creates config instance
@@ -119,7 +118,7 @@ public function getLessPaths()
*/
public function getLessJsPath()
{
- return '/js/less.min.js';
+ return '/sfLESSPlugin/js/less-1.0.33.min.js';
}
/**
View
4 lib/config/sfLESSConfig.class.php
@@ -55,14 +55,14 @@ public function getLessPaths()
*/
public function getLessJsPath()
{
- return sfConfig::get('app_sf_less_plugin_js_lib', '/sfLESSPlugin/js/less-1.0.33.min.js');
+ return sfConfig::get('app_sf_less_plugin_js_lib', parent::getLessJsPath());
}
/**
* @see LESSConfig
*/
public function isClientSideCompilation()
{
- sfConfig::get('app_sf_less_plugin_use_js', parent::isClientSideCompilation());
+ return sfConfig::get('app_sf_less_plugin_use_js', parent::isClientSideCompilation());
}
}

0 comments on commit e97159d

Please sign in to comment.