Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- client side compilation by default

- fix in inherittance
- config::isClientSideCompilation() fix
  • Loading branch information...
commit e97159d394ff9c52091ec59526b8de56134b2b13 1 parent 888ba4c
Konstantin Kudryashov authored
5 lib/config/LESSConfig.class.php
@@ -37,8 +37,7 @@ class LESSConfig
37 37 *
38 38 * @var boolean
39 39 */
40   - protected $compileClientSide = false;
41   -
  40 + protected $compileClientSide = true;
42 41
43 42 /**
44 43 * Creates config instance
@@ -119,7 +118,7 @@ public function getLessPaths()
119 118 */
120 119 public function getLessJsPath()
121 120 {
122   - return '/js/less.min.js';
  121 + return '/sfLESSPlugin/js/less-1.0.33.min.js';
123 122 }
124 123
125 124 /**
4 lib/config/sfLESSConfig.class.php
@@ -55,7 +55,7 @@ public function getLessPaths()
55 55 */
56 56 public function getLessJsPath()
57 57 {
58   - return sfConfig::get('app_sf_less_plugin_js_lib', '/sfLESSPlugin/js/less-1.0.33.min.js');
  58 + return sfConfig::get('app_sf_less_plugin_js_lib', parent::getLessJsPath());
59 59 }
60 60
61 61 /**
@@ -63,6 +63,6 @@ public function getLessJsPath()
63 63 */
64 64 public function isClientSideCompilation()
65 65 {
66   - sfConfig::get('app_sf_less_plugin_use_js', parent::isClientSideCompilation());
  66 + return sfConfig::get('app_sf_less_plugin_use_js', parent::isClientSideCompilation());
67 67 }
68 68 }

0 comments on commit e97159d

Please sign in to comment.
Something went wrong with that request. Please try again.