From d305dd2f793a4eb5b4fa54d910a1a7101d98e1d0 Mon Sep 17 00:00:00 2001 From: Matthew Vale Date: Tue, 1 Dec 2015 10:11:39 +0000 Subject: [PATCH] added normalize_path --- resources/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/functions.php b/resources/functions.php index c1bd498810..dda3d3a2d6 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -600,6 +600,12 @@ } //echo realpath(sys_get_temp_dir()); + if ( !function_exists('normalize_path')) { + function normalize_path($path) { + return str_replace(DIRECTORY_SEPERATOR, '\\', $path); + } + } + if (!function_exists('username_exists')) { function username_exists($username) { global $db, $domain_uuid;