aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php4
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);