Browse Source

Method "AssetController::adjustCssUrl()" has been applied to compress process.

tags/2.0.0-beta
Klimov Paul 12 years ago
parent
commit
2635b4775e
  1. 3
      framework/yii/console/controllers/AssetController.php

3
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);

Loading…
Cancel
Save