From: Magnus Manske Date: Wed, 4 Jul 2007 21:04:19 +0000 (+0000) Subject: Fix: mkdir doesn't run recursively on Windows when using "/" separators X-Git-Tag: 1.31.0-rc.0~52274 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=d59e149750ee799cf01fb3d5139c362b8f746bee;p=lhc%2Fweb%2Fwiklou.git Fix: mkdir doesn't run recursively on Windows when using "/" separators --- 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 ); } /**