diff --git a/app/webroot/css.php b/app/webroot/css.php index bf382122f..a64ceb179 100644 --- a/app/webroot/css.php +++ b/app/webroot/css.php @@ -44,7 +44,7 @@ if (!class_exists('File')) { * @return unknown */ function make_clean_css($path, $name) { - require(VENDORS . 'csspp' . DS . 'csspp.php'); + App::import('Vendor', 'csspp' . DS . 'csspp'); $data = file_get_contents($path); $csspp = new csspp(); $output = $csspp->compress($data); diff --git a/cake/console/libs/templates/skel/webroot/css.php b/cake/console/libs/templates/skel/webroot/css.php index bf382122f..a64ceb179 100644 --- a/cake/console/libs/templates/skel/webroot/css.php +++ b/cake/console/libs/templates/skel/webroot/css.php @@ -44,7 +44,7 @@ if (!class_exists('File')) { * @return unknown */ function make_clean_css($path, $name) { - require(VENDORS . 'csspp' . DS . 'csspp.php'); + App::import('Vendor', 'csspp' . DS . 'csspp'); $data = file_get_contents($path); $csspp = new csspp(); $output = $csspp->compress($data);