From 551b4443e13df2ef935a225afb7f29767ac5475b Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 12 Mar 2012 21:56:28 +0100 Subject: [PATCH] Force load profile pic after edit hack. --- apps/contacts/ajax/savecrop.php | 1 + apps/contacts/templates/part.contactphoto.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/contacts/ajax/savecrop.php b/apps/contacts/ajax/savecrop.php index ffbfaeb6e3..0df4e1998c 100644 --- a/apps/contacts/ajax/savecrop.php +++ b/apps/contacts/ajax/savecrop.php @@ -104,6 +104,7 @@ if(file_exists($tmp_path)) { $tmpl->assign('tmp_path', $tmpfname); $tmpl->assign('mime', $image->mimeType()); $tmpl->assign('id', $id); + $tmpl->assign('refresh', true); $tmpl->assign('width', $image->width()); $tmpl->assign('height', $image->height()); $page = $tmpl->fetchPage(); diff --git a/apps/contacts/templates/part.contactphoto.php b/apps/contacts/templates/part.contactphoto.php index 8107650d16..bcb2f75815 100644 --- a/apps/contacts/templates/part.contactphoto.php +++ b/apps/contacts/templates/part.contactphoto.php @@ -2,8 +2,9 @@ $id = $_['id']; $wattr = isset($_['width'])?'width="'.$_['width'].'"':''; $hattr = isset($_['height'])?'height="'.$_['height'].'"':''; +$rand = isset($_['refresh'])?'&'.rand().'='.rand():''; ?> - src="?id=" /> + src="?id=" />