diff --git a/inc/lib_filesystem.php b/inc/lib_filesystem.php
index 60201825e061613bc8b7bf11766acec9dbb1c760..a64d2ba599bbe52182bbab5cfb0978c0ab7b9ebc 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){