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:
Diffstat (limited to 'libs/upgradephp/upgrade.php')
-rw-r--r--libs/upgradephp/upgrade.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/upgradephp/upgrade.php b/libs/upgradephp/upgrade.php
index 8c29af7c3a..a945fa8ceb 100644
--- a/libs/upgradephp/upgrade.php
+++ b/libs/upgradephp/upgrade.php
@@ -710,4 +710,12 @@ if( !class_exists('\Error')) {
class Error {
}
-} \ No newline at end of file
+}
+
+if(!function_exists('fnmatch')) {
+
+ function fnmatch($pattern, $string) {
+ return preg_match("#^".strtr(preg_quote($pattern, '#'), array('\*' => '.*', '\?' => '.'))."$#i", $string);
+ } // end
+
+} // end if \ No newline at end of file