|
|
@ -517,11 +517,10 @@ EOD |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function combineCssFiles($inputFiles, $outputFile) |
|
|
|
public function combineCssFiles($inputFiles, $outputFile) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// todo: adjust url() references in CSS files |
|
|
|
|
|
|
|
$content = ''; |
|
|
|
$content = ''; |
|
|
|
foreach ($inputFiles as $file) { |
|
|
|
foreach ($inputFiles as $file) { |
|
|
|
$content .= "/*** BEGIN FILE: $file ***/\n" |
|
|
|
$content .= "/*** BEGIN FILE: $file ***/\n" |
|
|
|
. file_get_contents($file) |
|
|
|
. $this->adjustCssUrl(file_get_contents($file), dirname($file), dirname($outputFile)) |
|
|
|
. "/*** END FILE: $file ***/\n"; |
|
|
|
. "/*** END FILE: $file ***/\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
file_put_contents($outputFile, $content); |
|
|
|
file_put_contents($outputFile, $content); |
|
|
|