summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/contactdetails.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/ajax/contactdetails.php')
-rwxr-xr-xapps/contacts/ajax/contactdetails.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/contacts/ajax/contactdetails.php b/apps/contacts/ajax/contactdetails.php
index aa6aca4562a..0cbd55258de 100755
--- a/apps/contacts/ajax/contactdetails.php
+++ b/apps/contacts/ajax/contactdetails.php
@@ -23,14 +23,14 @@
// Init owncloud
function bailOut($msg) {
- OC_JSON::error(array('data' => array('message' => $msg)));
+ OCP\JSON::error(array('data' => array('message' => $msg)));
OCP\Util::writeLog('contacts','ajax/contactdetails.php: '.$msg, OCP\Util::DEBUG);
exit();
}
// Check if we are a user
-OC_JSON::checkLoggedIn();
-OC_JSON::checkAppEnabled('contacts');
+OCP\JSON::checkLoggedIn();
+OCP\JSON::checkAppEnabled('contacts');
$id = isset($_GET['id'])?$_GET['id']:null;
if(is_null($id)) {
@@ -69,4 +69,4 @@ if(isset($details['PHOTO'])) {
}
$details['id'] = $id;
OC_Contacts_App::setLastModifiedHeader($vcard);
-OC_JSON::success(array('data' => $details));
+OCP\JSON::success(array('data' => $details));