summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/move.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-03 12:23:29 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-03 12:23:29 +0200
commit43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5 (patch)
treef4b191f0d039cb7de942554ea23df3fff9de7ad6 /apps/files/ajax/move.php
parent375ba986452b190745b9388be92737d7e5771673 (diff)
downloadnextcloud-server-43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5.tar.gz
nextcloud-server-43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5.zip
ported oc_json
Diffstat (limited to 'apps/files/ajax/move.php')
-rwxr-xr-x[-rw-r--r--]apps/files/ajax/move.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/ajax/move.php b/apps/files/ajax/move.php
index 0ad314f873c..945fe4e7b82 100644..100755
--- a/apps/files/ajax/move.php
+++ b/apps/files/ajax/move.php
@@ -3,7 +3,7 @@
// Init owncloud
-OC_JSON::checkLoggedIn();
+OCP\JSON::checkLoggedIn();
// Get data
$dir = stripslashes($_GET["dir"]);
@@ -12,9 +12,9 @@ $target = stripslashes($_GET["target"]);
if(OC_Files::move($dir,$file,$target,$file)){
- OC_JSON::success(array("data" => array( "dir" => $dir, "files" => $file )));
+ OCP\JSON::success(array("data" => array( "dir" => $dir, "files" => $file )));
}else{
- OC_JSON::error(array("data" => array( "message" => "Could not move $file" )));
+ OCP\JSON::error(array("data" => array( "message" => "Could not move $file" )));
}
?>