Ignore:
Timestamp:
05/27/10 09:30:03 (10 years ago)
Author:
plg
Message:

bug 1704 fixed: windows needs a specific directory separator when creating
recursive directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/functions.inc.php

    r6356 r6384  
    169169  if ( !is_dir($dir) ) 
    170170  { 
     171    if (substr(PHP_OS, 0, 3) == 'WIN') 
     172    { 
     173      $dir = str_replace('/', DIRECTORY_SEPARATOR, $dir); 
     174    } 
    171175    $umask = umask(0); 
    172176    $mkd = @mkdir($dir, 0755, ($flags&MKGETDIR_RECURSIVE) ? true:false ); 
Note: See TracChangeset for help on using the changeset viewer.