Bug #31239 ยป urlReferences.patch
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']);
|