@@ -35,9 +35,10 @@ public function build(array $config)
3535 $ config ['output_dir ' ] .= '/ ' ;
3636 }
3737
38- if (in_array ($ config ['less_filter ' ], array ('sass ' , 'scssphp ' ))) {
38+ // changed from css_preprocessor to css_preprocessor for 3.0
39+ if (in_array ($ config ['css_preprocessor ' ], array ('sass ' , 'scssphp ' ))) {
3940 $ output ['bootstrap_css ' ] = $ this ->buildCssWithSass ($ config );
40- } elseif ('none ' !== $ config ['less_filter ' ]) {
41+ } elseif ('none ' !== $ config ['css_preprocessor ' ]) {
4142 $ output ['bootstrap_css ' ] = $ this ->buildCssWithLess ($ config );
4243 } else {
4344 $ output ['bootstrap_css ' ] = $ this ->buildCssWithoutLess ($ config );
@@ -93,7 +94,7 @@ protected function buildCssWithLess(array $config)
9394
9495 return array (
9596 'inputs ' => $ inputs ,
96- 'filters ' => array ($ config ['less_filter ' ]),
97+ 'filters ' => array ($ config ['css_preprocessor ' ]),
9798 'output ' => $ config ['output_dir ' ].'css/bootstrap.css '
9899 );
99100 }
@@ -121,7 +122,7 @@ protected function buildCssWithSass(array $config)
121122
122123 return array (
123124 'inputs ' => $ inputs ,
124- 'filters ' => array ($ config ['less_filter ' ]),
125+ 'filters ' => array ($ config ['css_preprocessor ' ]),
125126 'output ' => $ config ['output_dir ' ].'css/bootstrap.css '
126127 );
127128 }
@@ -133,7 +134,7 @@ protected function buildCssWithSass(array $config)
133134 */
134135 protected function buildJs (array $ config )
135136 {
136- $ path = !in_array ($ config ['less_filter ' ], array ('sass ' , 'scssphp ' )) ? "/js " : "/javascripts/bootstrap " ;
137+ $ path = !in_array ($ config ['css_preprocessor ' ], array ('sass ' , 'scssphp ' )) ? "/js " : "/javascripts/bootstrap " ;
137138
138139 return array (
139140 'inputs ' => array (
0 commit comments