mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[ticket/14039] Fix filesystem file updater's mkdir usage
PHPBB3-14039
This commit is contained in:
parent
74ae7d2a8d
commit
dd85806327
1 changed files with 1 additions and 16 deletions
|
@ -155,22 +155,7 @@ class file_updater implements file_updater_interface
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
|
$path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
|
||||||
$dirs = explode('/', $path);
|
$this->filesystem->mkdir($path, 493); // 493 === 0755
|
||||||
$dirs_to_create = array();
|
|
||||||
|
|
||||||
do
|
|
||||||
{
|
|
||||||
$path .= '../';
|
|
||||||
$dirs_to_create[] = array_pop($dirs);
|
|
||||||
}
|
|
||||||
while (!is_dir($path));
|
|
||||||
|
|
||||||
foreach ($dirs_to_create as $directory)
|
|
||||||
{
|
|
||||||
$path .= $directory;
|
|
||||||
$this->filesystem->mkdir($path, 493); // 493 === 0755
|
|
||||||
$path .= '/';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue