2
0
Эх сурвалжийг харах

added trailing / to getCwd()

Nicolas Cannasse 17 жил өмнө
parent
commit
0b103d558f
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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"])') + "/";
 	}
 
 	/**