Changeset 6384


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

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

Location:
branches/2.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/admin/include/functions_upload.inc.php

    r6052 r6384  
    142142{ 
    143143  if (!is_dir($directory)) { 
     144    if (substr(PHP_OS, 0, 3) == 'WIN') 
     145    { 
     146      $directory = str_replace('/', DIRECTORY_SEPARATOR, $directory); 
     147    } 
    144148    umask(0000); 
    145149    $recursive = true; 
  • 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.