summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/rename.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/ajax/rename.php')
-rwxr-xr-x[-rw-r--r--]apps/files/ajax/rename.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/ajax/rename.php b/apps/files/ajax/rename.php
index dc5d3962abd..e2fa3d54a61 100644..100755
--- a/apps/files/ajax/rename.php
+++ b/apps/files/ajax/rename.php
@@ -3,7 +3,7 @@
// Init owncloud
-OC_JSON::checkLoggedIn();
+OCP\JSON::checkLoggedIn();
// Get data
$dir = stripslashes($_GET["dir"]);
@@ -12,10 +12,10 @@ $newname = stripslashes($_GET["newname"]);
// Delete
if( OC_Files::move( $dir, $file, $dir, $newname )) {
- OC_JSON::success(array("data" => array( "dir" => $dir, "file" => $file, "newname" => $newname )));
+ OCP\JSON::success(array("data" => array( "dir" => $dir, "file" => $file, "newname" => $newname )));
}
else{
- OC_JSON::error(array("data" => array( "message" => "Unable to rename file" )));
+ OCP\JSON::error(array("data" => array( "message" => "Unable to rename file" )));
}
?>