diff options
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/ajax/delete.php | 8 | ||||
-rw-r--r-- | apps/files_trashbin/ajax/isEmpty.php | 6 | ||||
-rw-r--r-- | apps/files_trashbin/ajax/list.php | 4 | ||||
-rw-r--r-- | apps/files_trashbin/ajax/undelete.php | 8 |
4 files changed, 13 insertions, 13 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))); } diff --git a/apps/files_trashbin/ajax/isEmpty.php b/apps/files_trashbin/ajax/isEmpty.php index 1ee671334f2..73356047e74 100644 --- a/apps/files_trashbin/ajax/isEmpty.php +++ b/apps/files_trashbin/ajax/isEmpty.php @@ -22,12 +22,12 @@ * */ -OCP\JSON::checkLoggedIn(); -OCP\JSON::callCheck(); +\OC_JSON::checkLoggedIn(); +\OC_JSON::callCheck(); \OC::$server->getSession()->close(); $trashStatus = OCA\Files_Trashbin\Trashbin::isEmpty(OCP\User::getUser()); -OCP\JSON::success(array("data" => array("isEmpty" => $trashStatus))); +\OC_JSON::success(array("data" => array("isEmpty" => $trashStatus))); diff --git a/apps/files_trashbin/ajax/list.php b/apps/files_trashbin/ajax/list.php index dff647aa694..c31a33c2050 100644 --- a/apps/files_trashbin/ajax/list.php +++ b/apps/files_trashbin/ajax/list.php @@ -21,7 +21,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -OCP\JSON::checkLoggedIn(); +\OC_JSON::checkLoggedIn(); \OC::$server->getSession()->close(); // Load the files @@ -44,5 +44,5 @@ $data['permissions'] = 0; $data['directory'] = $dir; $data['files'] = \OCA\Files_Trashbin\Helper::formatFileInfos($files); -OCP\JSON::success(array('data' => $data)); +\OC_JSON::success(array('data' => $data)); diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php index f7e0594cd8a..5fb042aa1c4 100644 --- a/apps/files_trashbin/ajax/undelete.php +++ b/apps/files_trashbin/ajax/undelete.php @@ -26,8 +26,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(); $dir = '/'; @@ -88,8 +88,8 @@ if ( $error ) { } $l = OC::$server->getL10N('files_trashbin'); $message = $l->t("Couldn't restore %s", 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))); } |