diff --git a/src/includes/traits/Shared/FsUtils.php b/src/includes/traits/Shared/FsUtils.php index 6785320b..696ac444 100644 --- a/src/includes/traits/Shared/FsUtils.php +++ b/src/includes/traits/Shared/FsUtils.php @@ -30,7 +30,7 @@ public function nDirSeps($dir_file, $allow_trailing_slash = false) } if (mb_strpos($dir_file, ':' !== false)) { if (preg_match('/^(?P[a-zA-Z])\:[\/\\\\]/u', $dir_file)) { - $dir_file = preg_replace_callback('/^(?P[a-zA-Z])\:[\/\\\\]/u', create_function('$m', 'return mb_strtoupper($m[0]);'), $dir_file); + $dir_file = preg_replace_callback('/^(?P[a-zA-Z])\:[\/\\\\]/u', function ($m) { return mb_strtoupper($m[0]); }, $dir_file); } } $dir_file = preg_replace('/\/+/u', '/', str_replace([DIRECTORY_SEPARATOR, '\\', '/'], '/', $dir_file));