mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-12 04:36:32 +02:00
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
This commit is contained in:
@ -1063,6 +1063,14 @@ class install_update extends module
|
|||||||
$transfer->write_file($file_struct['filename'], $contents);
|
$transfer->write_file($file_struct['filename'], $contents);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'deleted':
|
||||||
|
|
||||||
|
if ($update_mode != 'download')
|
||||||
|
{
|
||||||
|
$transfer->rename($file_struct['filename'], $file_struct['filename'] . '.bak');
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user