From 50cd8ed52300a8613971f0d9bc0e66f4ca293b7b Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 27 May 2010 07:30:03 +0000 Subject: bug 1704 fixed: windows needs a specific directory separator when creating recursive directory. git-svn-id: http://piwigo.org/svn/branches/2.1@6384 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/functions.inc.php') diff --git a/include/functions.inc.php b/include/functions.inc.php index ede0cf30a..0a93d3927 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -168,6 +168,10 @@ function mkgetdir($dir, $flags=MKGETDIR_DEFAULT) { if ( !is_dir($dir) ) { + if (substr(PHP_OS, 0, 3) == 'WIN') + { + $dir = str_replace('/', DIRECTORY_SEPARATOR, $dir); + } $umask = umask(0); $mkd = @mkdir($dir, 0755, ($flags&MKGETDIR_RECURSIVE) ? true:false ); umask($umask); -- cgit v1.2.3