From d59e149750ee799cf01fb3d5139c362b8f746bee Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Wed, 4 Jul 2007 21:04:19 +0000 Subject: [PATCH] Fix: mkdir doesn't run recursively on Windows when using "/" separators --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 429fd4bf7f..bd305757b6 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1667,7 +1667,7 @@ function wfMkdirParents( $fullDir, $mode = 0777 ) { return true; if( file_exists( $fullDir ) ) return true; - return mkdir( $fullDir, $mode, true ); + return mkdir( str_replace('/',DIRECTORY_SEPARATOR,$fullDir) , $mode, true ); } /** -- 2.20.1