aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/helper/file_updater/file_updater.php
diff options
context:
space:
mode:
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