Skip to content

Commit

Permalink
MDL-18431 use of ZIPARCHIVE::OVERWRITE changed in 5.2.8 - credit goes…
Browse files Browse the repository at this point in the history
… to Dan Marsden
  • Loading branch information
skodak committed Sep 10, 2010
1 parent c311889 commit 05f2d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filestorage/zip_archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function open($archivepathname, $mode=file_archive::CREATE, $encoding='ut

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;
}
Expand Down

0 comments on commit 05f2d18

Please sign in to comment.