From cb941996c042fc8bd22422bd928ce8fc8b6b25ca Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 5 Jun 2012 20:30:22 +0200 Subject: Contacts: Use OC_Cache for contact photo handling instead of temp dir. --- apps/contacts/ajax/cropphoto.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/contacts/ajax/cropphoto.php') 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(); -- cgit v1.2.3