summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/uploadphoto.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 17:38:27 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 17:38:27 +0200
commitd0554bef069b29affa95ec3c2bf78af637703a90 (patch)
treef28c25fef284dc6b61425917e79a812c85274597 /apps/contacts/ajax/uploadphoto.php
parent7ded9cf520f74b595bc0f8939ac59249b47ccbc9 (diff)
downloadnextcloud-server-d0554bef069b29affa95ec3c2bf78af637703a90.tar.gz
nextcloud-server-d0554bef069b29affa95ec3c2bf78af637703a90.zip
finish porting of the LOG calls or the apps to the public api
Diffstat (limited to 'apps/contacts/ajax/uploadphoto.php')
-rwxr-xr-x[-rw-r--r--]apps/contacts/ajax/uploadphoto.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/contacts/ajax/uploadphoto.php b/apps/contacts/ajax/uploadphoto.php
index 082776f7f27..1148c271dcd 100644..100755
--- a/apps/contacts/ajax/uploadphoto.php
+++ b/apps/contacts/ajax/uploadphoto.php
@@ -29,11 +29,11 @@ OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts');
function bailOut($msg) {
OC_JSON::error(array('data' => array('message' => $msg)));
- OC_Log::write('contacts','ajax/uploadphoto.php: '.$msg, OC_Log::DEBUG);
+ OCP\Util::writeLog('contacts','ajax/uploadphoto.php: '.$msg, OCP\Util::DEBUG);
exit();
}
function debug($msg) {
- OC_Log::write('contacts','ajax/uploadphoto.php: '.$msg, OC_Log::DEBUG);
+ OCP\Util::writeLog('contacts','ajax/uploadphoto.php: '.$msg, OCP\Util::DEBUG);
}
// If it is a Drag'n'Drop transfer it's handled here.
@@ -41,7 +41,7 @@ $fn = (isset($_SERVER['HTTP_X_FILE_NAME']) ? $_SERVER['HTTP_X_FILE_NAME'] : fals
if ($fn) {
// AJAX call
if (!isset($_GET['id'])) {
- OC_Log::write('contacts','ajax/uploadphoto.php: No contact ID was submitted.', OC_Log::DEBUG);
+ OCP\Util::writeLog('contacts','ajax/uploadphoto.php: No contact ID was submitted.', OCP\Util::DEBUG);
OC_JSON::error(array('data' => array( 'message' => 'No contact ID was submitted.' )));
exit();
}
@@ -70,12 +70,12 @@ if ($fn) {
if (!isset($_POST['id'])) {
- OC_Log::write('contacts','ajax/uploadphoto.php: No contact ID was submitted.', OC_Log::DEBUG);
+ OCP\Util::writeLog('contacts','ajax/uploadphoto.php: No contact ID was submitted.', OCP\Util::DEBUG);
OC_JSON::error(array('data' => array( 'message' => 'No contact ID was submitted.' )));
exit();
}
if (!isset($_FILES['imagefile'])) {
- OC_Log::write('contacts','ajax/uploadphoto.php: No file was uploaded. Unknown error.', OC_Log::DEBUG);
+ OCP\Util::writeLog('contacts','ajax/uploadphoto.php: No file was uploaded. Unknown error.', OCP\Util::DEBUG);
OC_JSON::error(array('data' => array( 'message' => 'No file was uploaded. Unknown error' )));
exit();
}