Project

General

Profile

Bug #15218 ยป 0001897.patch

Administrator Admin, 2008-07-25 22:08

View differences:

typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
case 'gdlib':
case 'gdlib_png':
case 'im':
if (strcmp($GLOBALS['TYPO3_CONF_VARS']['GFX'][$key],$value)) $this->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'GFX\']["'.$key.'"]', $value?1:0);
if (strcmp($GLOBALS['TYPO3_CONF_VARS']['GFX'][$key], $value)) {
$this->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'GFX\'][\'' . $key . '\']', ($value ? 1 : 0));
}
break;
case 'im_path':
list($value,$version) = explode('|',$value);
if (!ereg('[[:space:]]',$value,$reg) && strlen($value)<100) {
if (strcmp($GLOBALS['TYPO3_CONF_VARS']['GFX'][$key],$value)) {
$this->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'GFX\']["'.$key.'"]', $value);
if (strcmp($GLOBALS['TYPO3_CONF_VARS']['GFX'][$key], $value)) {
$this->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'GFX\'][\'' . $key . '\']', $value);
}
if(doubleval($version)>0 && doubleval($version)<4) { // Assume GraphicsMagick
$value_ext = 'gm';
......
case 'im_path_lzw':
list($value) = explode('|',$value);
if (!ereg('[[:space:]]',$value) && strlen($value)<100) {
if (strcmp($GLOBALS['TYPO3_CONF_VARS']['GFX'][$key],$value)) $this->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'GFX\']["'.$key.'"]', $value);
if (strcmp($GLOBALS['TYPO3_CONF_VARS']['GFX'][$key], $value)) {
$this->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'GFX\'][\'' . $key . '\']', $value);
}
} else $this->messages[]= $errorMessages[] = "Path '".$value."' contains spaces or is longer than 100 chars (...not saved)";
break;
case 'TTFdpi':
    (1-1/1)