aboutsummaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/oc_photo.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-07-19 23:48:17 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-07-20 00:18:23 +0200
commit1cbddcf211d81065bf91bacee5b318c48b6b27aa (patch)
tree750491cb581baa03884160e0bdf4e709489ce861 /apps/contacts/ajax/oc_photo.php
parent616f2f336e1e03aaf22aeed7196182b1890669b5 (diff)
downloadnextcloud-server-1cbddcf211d81065bf91bacee5b318c48b6b27aa.tar.gz
nextcloud-server-1cbddcf211d81065bf91bacee5b318c48b6b27aa.zip
Code style
Diffstat (limited to 'apps/contacts/ajax/oc_photo.php')
-rw-r--r--apps/contacts/ajax/oc_photo.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/contacts/ajax/oc_photo.php b/apps/contacts/ajax/oc_photo.php
index 710179fffcc..fe37b530f82 100644
--- a/apps/contacts/ajax/oc_photo.php
+++ b/apps/contacts/ajax/oc_photo.php
@@ -22,7 +22,7 @@
// Check if we are a user
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('contacts');
-require_once('loghandler.php');
+require_once 'loghandler.php';
if(!isset($_GET['id'])) {
bailOut(OC_Contacts_App::$l10n->t('No contact ID was submitted.'));
@@ -50,7 +50,9 @@ if($image->width() > 400 || $image->height() > 400) {
$image->resize(400); // Prettier resizing than with browser and saves bandwidth.
}
if(!$image->fixOrientation()) { // No fatal error so we don't bail out.
- OCP\Util::writeLog('contacts','ajax/oc_photo.php: Couldn\'t save correct image orientation: '.$localpath, OCP\Util::DEBUG);
+ OCP\Util::writeLog('contacts',
+ 'ajax/oc_photo.php: Couldn\'t save correct image orientation: '.$localpath,
+ OCP\Util::DEBUG);
}
if(OC_Cache::set($tmpkey, $image->data(), 600)) {
OCP\JSON::success(array('data' => array('id'=>$_GET['id'], 'tmp'=>$tmpkey)));