aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/helper/file_updater/file_updater.php
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-10-18 14:00:53 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-10-18 14:00:53 +0200
commitdd8580632765c051ea68b877ce608ca69b5655fe (patch)
treecea1b91e9f5b4ba37d4a5f2b8e8c84b82cda266f /phpBB/phpbb/install/helper/file_updater/file_updater.php
parent74ae7d2a8d396701f0ae8bdbcb19cd67135c5f8d (diff)
downloadforums-dd8580632765c051ea68b877ce608ca69b5655fe.tar
forums-dd8580632765c051ea68b877ce608ca69b5655fe.tar.gz
forums-dd8580632765c051ea68b877ce608ca69b5655fe.tar.bz2
forums-dd8580632765c051ea68b877ce608ca69b5655fe.tar.xz
forums-dd8580632765c051ea68b877ce608ca69b5655fe.zip
[ticket/14039] Fix filesystem file updater's mkdir usage
PHPBB3-14039
Diffstat (limited to 'phpBB/phpbb/install/helper/file_updater/file_updater.php')
-rw-r--r--phpBB/phpbb/install/helper/file_updater/file_updater.php17
1 files changed, 1 insertions, 16 deletions
diff --git a/phpBB/phpbb/install/helper/file_updater/file_updater.php b/phpBB/phpbb/install/helper/file_updater/file_updater.php
index 8ebbf64253..00cb0d17bd 100644
--- a/phpBB/phpbb/install/helper/file_updater/file_updater.php
+++ b/phpBB/phpbb/install/helper/file_updater/file_updater.php
@@ -155,22 +155,7 @@ class file_updater implements file_updater_interface
}
$path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
- $dirs = explode('/', $path);
- $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 .= '/';
- }
+ $this->filesystem->mkdir($path, 493); // 493 === 0755
}
/**