projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #23912 from mlutfy/reportVars
[civicrm-core.git]
/
CRM
/
Utils
/
Zip.php
diff --git
a/CRM/Utils/Zip.php
b/CRM/Utils/Zip.php
index edcef5a720ae5f752e7964e1b57f7bebd4259ae6..0337bd9b9d5a48be18c940bd5799712bd4c2686f 100644
(file)
--- a/
CRM/Utils/Zip.php
+++ b/
CRM/Utils/Zip.php
@@
-80,7
+80,7
@@
class CRM_Utils_Zip {
* Determine the name of the folder within a zip.
*
* @param ZipArchive $zip
* Determine the name of the folder within a zip.
*
* @param ZipArchive $zip
- * @param $expected
+ * @param
string
$expected
*
* @return string|bool
* Return string or FALSE
*
* @return string|bool
* Return string or FALSE
@@
-116,7
+116,7
@@
class CRM_Utils_Zip {
*/
public static function createTestZip($zipName, $dirs, $files) {
$zip = new ZipArchive();
*/
public static function createTestZip($zipName, $dirs, $files) {
$zip = new ZipArchive();
- $res = $zip->open($zipName, ZipArchive::
CREA
TE);
+ $res = $zip->open($zipName, ZipArchive::
OVERWRI
TE);
if ($res === TRUE) {
foreach ($dirs as $dir) {
if (!$zip->addEmptyDir($dir)) {
if ($res === TRUE) {
foreach ($dirs as $dir) {
if (!$zip->addEmptyDir($dir)) {