Skip to content
Browse files

Make the LESS helper 'inherit' from the symfony Asset helper

  • Loading branch information...
1 parent a613060 commit 7f69b832ffdfd323ad3e4af90581d7eea67a0a8f @vicb vicb committed
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/helper/LESSHelper.php
View
9 lib/helper/LESSHelper.php
@@ -31,19 +31,12 @@
function get_less_stylesheets()
{
$response = sfContext::getInstance()->getResponse();
- sfConfig::set('symfony.asset.stylesheets_included', true);
sfLESSListeners::findAndFixContentLinks(
$response, sfConfig::get('app_sf_less_plugin_use_js', false)
);
- $html = '';
- foreach ($response->getStylesheets() as $file => $options)
- {
- $html .= stylesheet_tag($file, $options);
- }
-
- return $html;
+ return get_stylesheets();
}
/**

0 comments on commit 7f69b83

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