mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-18431 use of ZIPARCHIVE::OVERWRITE changed in 5.2.8 - credit goes to Dan Marsden
This commit is contained in:
parent
c311889cc0
commit
05f2d18ba2
@ -68,7 +68,7 @@ class zip_archive extends file_archive {
|
||||
|
||||
switch($mode) {
|
||||
case file_archive::OPEN: $flags = 0; break;
|
||||
case file_archive::OVERWRITE: $flags = ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE; break;
|
||||
case file_archive::OVERWRITE: $flags = ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE; break; //changed in PHP 5.2.8
|
||||
case file_archive::CREATE:
|
||||
default : $flags = ZIPARCHIVE::CREATE; break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user