Project

General

Profile

Bug #31239 ยป urlReferences.patch

Stefan Galinski, 2011-10-24 21:04

View differences:

t3lib/class.t3lib_compressor.php
public function compressCssFiles(array $cssFiles) {
$filesAfterCompression = array();
foreach ($cssFiles as $key => $fileOptions) {
if (t3lib_div::isValidUrl($fileOptions['file'])) {
$fileOptions['file'] = $this->retrieveExternalFile($fileOptions['file']);
}
// if compression is enabled
if ($fileOptions['compress']) {
$filename = $this->compressCssFile($fileOptions['file']);
......
public function compressJsFiles(array $jsFiles) {
$filesAfterCompression = array();
foreach ($jsFiles as $key => $fileOptions) {
if (t3lib_div::isValidUrl($fileOptions['file'])) {
$fileOptions['file'] = $this->retrieveExternalFile($fileOptions['file']);
}
// if compression is enabled
if ($fileOptions['compress']) {
$fileOptions['file'] = $this->compressJsFile($fileOptions['file']);
    (1-1/1)