Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Call fflush in createEmptyFile to make sure FTP wrapper is working.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 7, 2016
1 parent b11ed50 commit 3a86ae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/plugins/access.fs/FsAccessDriver.php
Expand Up @@ -2226,6 +2226,7 @@ public function createEmptyFile(AJXP_Node $node, $content = "", $force = false)
fputs($fp, $content);
}
$this->changeMode($node->getUrl(), $repoData);
fflush($fp);
fclose($fp);
$node->loadNodeInfo();
Controller::applyHook("node.change", [null, $node, false]);
Expand Down

0 comments on commit 3a86ae3

Please sign in to comment.