소스 검색

added normalize_path

Matthew Vale 9 년 전
부모
커밋
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;