Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Becker <fabian.becker@uni-tuebingen.de>2013-09-04 03:49:04 +0400
committerFabian Becker <fabian.becker@uni-tuebingen.de>2013-09-04 03:49:04 +0400
commit74259d62bce75c60c837666a42d93020f2f9339a (patch)
tree948271daf242caccefeebfe2677ba7be00fcd445 /core/Unzip
parentf229dbc8cc1df2fbe90bdcd5a9e7762abc5fc8ae (diff)
Fix failing test.
Diffstat (limited to 'core/Unzip')
-rw-r--r--core/Unzip/PclZip.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Unzip/PclZip.php b/core/Unzip/PclZip.php
index 6b2873766e..5ad6191681 100644
--- a/core/Unzip/PclZip.php
+++ b/core/Unzip/PclZip.php
@@ -76,8 +76,8 @@ class PclZip implements UncompressInterface
PCLZIP_OPT_PATH, $pathExtracted,
PCLZIP_OPT_STOP_ON_ERROR,
PCLZIP_OPT_REPLACE_NEWER,
- PCLZIP_CB_PRE_EXTRACT, function($p_event, &$p_header) {
- return strncmp($p_header['filename'], '$pathExtracted', strlen('$pathExtracted')) ? 0 : 1;
+ PCLZIP_CB_PRE_EXTRACT, function($p_event, &$p_header) use ($pathExtracted) {
+ return strncmp($p_header['filename'], $pathExtracted, strlen($pathExtracted)) ? 0 : 1;
}
);
}