summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/cropphoto.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-05 20:30:22 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-05 20:34:12 +0200
commitcb941996c042fc8bd22422bd928ce8fc8b6b25ca (patch)
treea0d8e021a78495216216335239e959c52019b74b /apps/contacts/ajax/cropphoto.php
parent098beae751e5bf5995d3afc5b01ed6ca67676f64 (diff)
downloadnextcloud-server-cb941996c042fc8bd22422bd928ce8fc8b6b25ca.tar.gz
nextcloud-server-cb941996c042fc8bd22422bd928ce8fc8b6b25ca.zip
Contacts: Use OC_Cache for contact photo handling instead of temp dir.
Diffstat (limited to 'apps/contacts/ajax/cropphoto.php')
-rw-r--r--apps/contacts/ajax/cropphoto.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/contacts/ajax/cropphoto.php b/apps/contacts/ajax/cropphoto.php
index 7b286dbdb52..63c9eb8f2d3 100644
--- a/apps/contacts/ajax/cropphoto.php
+++ b/apps/contacts/ajax/cropphoto.php
@@ -27,11 +27,11 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('contacts');
-$tmp_path = $_GET['tmp_path'];
+$tmpkey = $_GET['tmpkey'];
$id = $_GET['id'];
-OCP\Util::writeLog('contacts','ajax/cropphoto.php: tmp_path: '.$tmp_path.', exists: '.file_exists($tmp_path), OCP\Util::DEBUG);
+//OCP\Util::writeLog('contacts','ajax/cropphoto.php: tmpkey: '.$tmpkey.', exists: '.file_exists($tmp_path), OCP\Util::DEBUG);
$tmpl = new OCP\Template("contacts", "part.cropphoto");
-$tmpl->assign('tmp_path', $tmp_path);
+$tmpl->assign('tmpkey', $tmpkey);
$tmpl->assign('id', $id);
$page = $tmpl->fetchPage();