Skip to content

Commit

Permalink
Try to make the existing directory for ZIP files writable.
Browse files Browse the repository at this point in the history
Fixed the issue reported by Derky.

> If the directory exists but is unwritable this function will not chmod it.
  • Loading branch information
lavigor committed Feb 20, 2015
1 parent a60f2b9 commit 2fcfd9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions migrations/configuration/add_zip_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ private function upload_directory()
$directory = 'ext';
}
}
else if (!is_writable($this->phpbb_root_path . $directory))
{
@chmod($this->phpbb_root_path . $directory, 0755);
}

return $directory;
}
Expand Down

0 comments on commit 2fcfd9e

Please sign in to comment.