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 23:11:20 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-10-18 23:11:20 +0200
commit2f8ef80d92457e29f688155cd5433a92fa981139 (patch)
tree4a0e2448a1a5700dabf17ace731f2a5d0aa7963c /phpBB/phpbb/install/helper/file_updater/file_updater.php
parent4b447c71de8af0530574958e4c788186b606346f (diff)
downloadforums-2f8ef80d92457e29f688155cd5433a92fa981139.tar
forums-2f8ef80d92457e29f688155cd5433a92fa981139.tar.gz
forums-2f8ef80d92457e29f688155cd5433a92fa981139.tar.bz2
forums-2f8ef80d92457e29f688155cd5433a92fa981139.tar.xz
forums-2f8ef80d92457e29f688155cd5433a92fa981139.zip
[ticket/14039] Fix folder creation and deleted binary file issue
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.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/phpbb/install/helper/file_updater/file_updater.php b/phpBB/phpbb/install/helper/file_updater/file_updater.php
index 00cb0d17bd..cc0f5c6b5f 100644
--- a/phpBB/phpbb/install/helper/file_updater/file_updater.php
+++ b/phpBB/phpbb/install/helper/file_updater/file_updater.php
@@ -113,6 +113,13 @@ class file_updater implements file_updater_interface
$path_to_file_to_update = $this->phpbb_root_path . $path_to_file_to_update;
$original_file_perms = false;
+ // Maybe necessary for binary files
+ $dir = dirname($path_to_file_to_update);
+ if (!$this->filesystem->exists($dir))
+ {
+ $this->make_dir($dir);
+ }
+
if (!$this->filesystem->is_writable($path_to_file_to_update))
{
// Extract last 9 bits we actually need