Skip to content

Commit

Permalink
Update AutoUpdate.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kieronsutton00 authored Apr 18, 2017
1 parent ede567e commit 9f4df6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AutoUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,8 @@ protected function _install($updateFile, $simulateInstall, $version)
return false;
}
} else {
if (!touch($absoluteFilename)) {
// touch will fail if PHP is not the owner of the file, and file_put_contents is faster than touch.
if (!file_put_contents($absoluteFilename)) {
$this->_log->addError(sprintf('[SIMULATE] The file "%s" could not be created!', $absoluteFilename));
zip_close($zip);

Expand Down

0 comments on commit 9f4df6f

Please sign in to comment.