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=" />