diff options
Diffstat (limited to 'files/ajax/newfolder.php')
-rw-r--r-- | files/ajax/newfolder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ajax/newfolder.php b/files/ajax/newfolder.php index 43d87461fc7..6966e912c56 100644 --- a/files/ajax/newfolder.php +++ b/files/ajax/newfolder.php @@ -13,7 +13,7 @@ if($foldername == '') { OC_JSON::error(array("data" => array( "message" => "Empty Foldername" ))); exit(); } -if(defined("DEBUG") && DEBUG) {error_log('try to create ' . $foldername . ' in ' . $dir);} + if(OC_Files::newFile($dir, $foldername, 'dir')) { OC_JSON::success(array("data" => array())); exit(); |