diff options
author | plegall <plg@piwigo.org> | 2010-05-27 07:31:08 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-05-27 07:31:08 +0000 |
commit | d63d95e0242fad3ae835941df0caf28f8187ec70 (patch) | |
tree | 51ca8df8aeb283dcd668a4f1d6bb6f550f8fc9d3 /include | |
parent | 5f597c2cbabc9002886a056b3e513ceed27a99bf (diff) |
merge r6384 from branch 2.1 to trunk
bug 1704 fixed: windows needs a specific directory separator when creating
recursive directory.
git-svn-id: http://piwigo.org/svn/trunk@6385 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
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); |