From 653c6e5984d7d163c120db71831807b90b51c0f6 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Mon, 18 Oct 2010 16:21:47 +0000
Subject: [PATCH] fix small bug in filesystem abstraction

---
 inc/lib_filesystem.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/inc/lib_filesystem.php b/inc/lib_filesystem.php
index 60201825e0..a64d2ba599 100644
--- a/inc/lib_filesystem.php
+++ b/inc/lib_filesystem.php
@@ -283,8 +283,7 @@ class OC_FILESYSTEM{
 	}
 	static public function file_put_contents($path,$data){
 		if(self::canWrite($path) and $storage=self::getStorage($path)){
-			$this->notifyObservers($path,OC_FILEACTION_WRITE | OC_FILEACTION_CREATE);
-			return $storage->file_put_contents(self::getInternalPath($path));
+			return $storage->file_put_contents(self::getInternalPath($path),$data);
 		}
 	}
 	static public function unlink($path){
-- 
GitLab