diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-24 17:52:39 +0400 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-24 17:52:39 +0400 |
commit | 6c5e104d6ec5e649a322230e5a88b70f931cd2e7 (patch) | |
tree | ccd7d9ca780602670b9bbd13689a3b6b2e9bbc8c /files_svgedit | |
parent | d1a0da79a63f485709646bf9a6de6ea5ffc62852 (diff) |
cleanup OC_Files a bit
Diffstat (limited to 'files_svgedit')
-rw-r--r-- | files_svgedit/ajax/save.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files_svgedit/ajax/save.php b/files_svgedit/ajax/save.php index e299df4c9..62b74b287 100644 --- a/files_svgedit/ajax/save.php +++ b/files_svgedit/ajax/save.php @@ -48,8 +48,8 @@ if($path != '' && $mtime != '') { OC_JSON::error(array("data" => array( "message" => "Empty Filename") )); exit(); } - OC_Files::newFile($dir, '', 'dir'); - if(!OC_Files::newFile($dir, $file, 'file')) { + \OC\Files\Filesystem::mkdir($dir); + if(!\OC\Files\Filesystem::touch($dir . '/' . $file)) { OC_JSON::error(array("data" => array("message" => "Error when creating new file!"))); OC_Log::write('files_svgedit', "Failed to create file: " . $path, OC_Log::ERROR); exit(); |