summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/ajax/delete.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-22 13:19:29 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-22 13:19:29 +0100
commit3dac15a8911fea1e8473af7e7a26d7a57e68328b (patch)
treeeaf7dca00a5b171f2d2336c93a53bd486e2c19d3 /apps/files_trashbin/ajax/delete.php
parentf843b7edfe7b3bc6e45d4610778d2df98b3985e3 (diff)
downloadnextcloud-server-3dac15a8911fea1e8473af7e7a26d7a57e68328b.tar.gz
nextcloud-server-3dac15a8911fea1e8473af7e7a26d7a57e68328b.zip
Move calls to \OCP\JSON to private \OC_JSON
They should be properly fixed at some point. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/ajax/delete.php')
-rw-r--r--apps/files_trashbin/ajax/delete.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_trashbin/ajax/delete.php b/apps/files_trashbin/ajax/delete.php
index d75325c3aeb..149bbbd94ff 100644
--- a/apps/files_trashbin/ajax/delete.php
+++ b/apps/files_trashbin/ajax/delete.php
@@ -24,8 +24,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-OCP\JSON::checkLoggedIn();
-OCP\JSON::callCheck();
+\OC_JSON::checkLoggedIn();
+\OC_JSON::callCheck();
\OC::$server->getSession()->close();
$folder = isset($_POST['dir']) ? $_POST['dir'] : '/';
@@ -83,8 +83,8 @@ if ( $error ) {
}
$l = \OC::$server->getL10N('files_trashbin');
$message = $l->t("Couldn't delete %s permanently", array(rtrim($filelist, ', ')));
- OCP\JSON::error(array("data" => array("message" => $message,
+ \OC_JSON::error(array("data" => array("message" => $message,
"success" => $success, "error" => $error)));
} else {
- OCP\JSON::success(array("data" => array("success" => $success)));
+ \OC_JSON::success(array("data" => array("success" => $success)));
}