mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12778] Rename the file to *.bak instead of deleting [ticket/12778] Automatically delete files on update
This commit is contained in:
commit
3c79287c0b
1 changed files with 8 additions and 0 deletions
|
@ -1063,6 +1063,14 @@ class install_update extends module
|
|||
$transfer->write_file($file_struct['filename'], $contents);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'deleted':
|
||||
|
||||
if ($update_mode != 'download')
|
||||
{
|
||||
$transfer->rename($file_struct['filename'], $file_struct['filename'] . '.bak');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue