Browse Source

added trailing / to getCwd()

Nicolas Cannasse 17 năm trước cách đây
mục cha
commit
0b103d558f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      std/php/Web.hx

+ 1 - 1
std/php/Web.hx

@@ -236,7 +236,7 @@ class Web {
 		Get the current script directory in the local filesystem.
 	**/
 	public static inline function getCwd() : String {
-		return untyped __php__('dirname($_SERVER["SCRIPT_FILENAME"])');
+		return untyped __php__('dirname($_SERVER["SCRIPT_FILENAME"])') + "/";
 	}
 
 	/**