Project

General

Profile

Bug #18544 ยป check_typo3conf_writable.patch

Administrator Admin, 2008-04-03 08:52

View differences:

init.php (working copy)
if($setInstallToolVersion = t3lib_div::_GP('installToolVersion')) {
if ($setInstallToolVersion === 'new') {
$lcBackupFileName = PATH_typo3conf.'localconf-'.date('ymd').'.php';
if (!file_exists($lcBackupFileName)) {
if (!copy(PATH_typo3conf.'localconf.php', $lcBackupFileName)) {
if (!file_exists($lcBackupFileName)) {
if (! is_writable(PATH_typo3conf)) {
echo 'typo3conf/ needs to be writable for creating the backup of localconf.php, please fix this! Will not start the new install tool.';
exit;
} elseif (!copy(PATH_typo3conf.'localconf.php', $lcBackupFileName)) {
echo 'Backup of localconf.php failed! Will not start the new install tool.';
exit;
}
    (1-1/1)