Matthew Vale 9 лет назад
Родитель
Сommit
8c20b117c1
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      resources/functions.php

+ 6 - 0
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;