瀏覽代碼

corrected the normalizer

Matthew Vale 9 年之前
父節點
當前提交
ede741f82c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/functions.php

+ 1 - 1
resources/functions.php

@@ -602,7 +602,7 @@
 
 	if ( !function_exists('normalize_path')) {
 		function normalize_path($path) {
-			return str_replace(DIRECTORY_SEPARATOR, '\\', $path);
+			return str_replace(array('/','\\'), DIRECTORY_SEPARATOR, $path);
 		}
 	}