mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-02 16:02:17 +02:00
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
This commit is contained in:
@@ -141,6 +141,10 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie
|
||||
function prepare_directory($directory)
|
||||
{
|
||||
if (!is_dir($directory)) {
|
||||
if (substr(PHP_OS, 0, 3) == 'WIN')
|
||||
{
|
||||
$directory = str_replace('/', DIRECTORY_SEPARATOR, $directory);
|
||||
}
|
||||
umask(0000);
|
||||
$recursive = true;
|
||||
if (!@mkdir($directory, 0777, $recursive))
|
||||
|
||||
Reference in New Issue
Block a user