Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-24 17:52:39 +0400
committerRobin Appelman <icewind@owncloud.com>2012-10-24 17:52:39 +0400
commit6c5e104d6ec5e649a322230e5a88b70f931cd2e7 (patch)
treeccd7d9ca780602670b9bbd13689a3b6b2e9bbc8c /files_svgedit
parentd1a0da79a63f485709646bf9a6de6ea5ffc62852 (diff)
cleanup OC_Files a bit
Diffstat (limited to 'files_svgedit')
-rw-r--r--files_svgedit/ajax/save.php4
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();