From fb4277a852963606a6f3e44e991a46a9f1953770 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 9 Oct 2008 03:43:42 +0000 Subject: [PATCH] Updating css.php to use App::import(). Closes #4613 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7717 3807eeeb-6ff5-0310-8944-8be069107fe0 --- app/webroot/css.php | 2 +- cake/console/libs/templates/skel/webroot/css.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);