Forgot data parameter for file_put_contents() streams pre proxies

This commit is contained in:
Michael Gapczynski 2012-07-26 23:10:21 -04:00
parent ea18d70c60
commit 93c75f46e5
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ class OC_FilesystemView {
public function file_put_contents($path, $data) {
if(is_resource($data)) {//not having to deal with streams in file_put_contents makes life easier
$absolutePath = $this->getAbsolutePath($path);
if (OC_FileProxy::runPreProxies('file_put_contents', $absolutePath) && OC_Filesystem::isValidPath($path)) {
if (OC_FileProxy::runPreProxies('file_put_contents', $absolutePath, $data) && OC_Filesystem::isValidPath($path)) {
$path = $this->getRelativePath($absolutePath);
$exists = $this->file_exists($path);
$run = true;