diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2014-08-08 16:01:42 +0200 | 
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2014-08-08 16:01:42 +0200 | 
| commit | 50fcd704288f14f3e6715ca3d35ee72d522b13b6 (patch) | |
| tree | 70950b0f78f386c34a77dca267f7d14bb23f9aa2 /phpBB/install/install_update.php | |
| parent | 44a0f43062ea63ebb5cc5cdfa500934987b85cde (diff) | |
| parent | 54885416404db57ad0062799f0c22db3e472169d (diff) | |
| download | forums-50fcd704288f14f3e6715ca3d35ee72d522b13b6.tar forums-50fcd704288f14f3e6715ca3d35ee72d522b13b6.tar.gz forums-50fcd704288f14f3e6715ca3d35ee72d522b13b6.tar.bz2 forums-50fcd704288f14f3e6715ca3d35ee72d522b13b6.tar.xz forums-50fcd704288f14f3e6715ca3d35ee72d522b13b6.zip  | |
Merge pull request #2815 from dhruvgoel92/ticket/12778
[ticket/12778] Automatically delete files on update
* dhruvgoel92/ticket/12778:
  [ticket/12778] Rename the file to *.bak instead of deleting
  [ticket/12778] Automatically delete files on update
Diffstat (limited to 'phpBB/install/install_update.php')
| -rw-r--r-- | phpBB/install/install_update.php | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php index 28777a8d24..82ca0fc18d 100644 --- a/phpBB/install/install_update.php +++ b/phpBB/install/install_update.php @@ -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;  						}  					}  				}  | 
