diff options
Diffstat (limited to 'libs/upgradephp')
-rw-r--r-- | libs/upgradephp/upgrade.php | 10 |
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 |