From 2635b4775efaf514ee1e7ace7071ae6c29f596ec Mon Sep 17 00:00:00 2001 From: Klimov Paul Date: Sun, 26 May 2013 21:01:18 +0300 Subject: [PATCH] Method "AssetController::adjustCssUrl()" has been applied to compress process. --- framework/yii/console/controllers/AssetController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/yii/console/controllers/AssetController.php b/framework/yii/console/controllers/AssetController.php index 1bd8e10..98c67a5 100644 --- a/framework/yii/console/controllers/AssetController.php +++ b/framework/yii/console/controllers/AssetController.php @@ -517,11 +517,10 @@ EOD */ public function combineCssFiles($inputFiles, $outputFile) { - // todo: adjust url() references in CSS files $content = ''; foreach ($inputFiles as $file) { $content .= "/*** BEGIN FILE: $file ***/\n" - . file_get_contents($file) + . $this->adjustCssUrl(file_get_contents($file), dirname($file), dirname($outputFile)) . "/*** END FILE: $file ***/\n"; } file_put_contents($outputFile, $content);