Project

General

Profile

Bug #21170 ยป 15395.diff

Administrator Admin, 2010-08-08 17:36

View differences:

t3lib/class.t3lib_compressor.php (Arbeitskopie)
$this->createGzipped = TRUE;
// $compressionLevel can also be TRUE
if (t3lib_div::testInt($compressionLevel)) {
$this->gzipCompressionLevel = $compressionLevel;
$this->gzipCompressionLevel = intval($compressionLevel);
}
}
}
......
if ($this->createGzipped) {
// create compressed version
$compressionLevel = -1;
if (isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['compressionLevel']) && is_numeric($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['compressionLevel'])) {
$compressionLevel = intval($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['compressionLevel']);
}
t3lib_div::writeFile(PATH_site . $filename . '.gzip', gzencode($contents, $compressionLevel));
t3lib_div::writeFile(PATH_site . $filename . '.gzip', gzencode($contents, $this->gzCompressionlevel));
}
}
    (1-1/1)