diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-04-22 20:38:17 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-04-22 20:47:24 +0200 |
commit | 8a6cb23170b95336770bc4dcd6d58583de82815e (patch) | |
tree | c3811c2a26c9a64af5b6972d98659d5238d11b30 /apps/contacts/ajax/savecrop.php | |
parent | 1bba4456420d1824ab6d58f3d9bb523fcde5c4c2 (diff) | |
download | nextcloud-server-8a6cb23170b95336770bc4dcd6d58583de82815e.tar.gz nextcloud-server-8a6cb23170b95336770bc4dcd6d58583de82815e.zip |
Contacts: Clear cache for contact photo and thumbnail when it has been changed.
Diffstat (limited to 'apps/contacts/ajax/savecrop.php')
-rw-r--r-- | apps/contacts/ajax/savecrop.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/contacts/ajax/savecrop.php b/apps/contacts/ajax/savecrop.php index 73ac521e04b..d003834ef8c 100644 --- a/apps/contacts/ajax/savecrop.php +++ b/apps/contacts/ajax/savecrop.php @@ -94,6 +94,8 @@ if(file_exists($tmp_path)) { OC_Log::write('contacts','savecrop.php: files: Adding PHOTO property.', OC_Log::DEBUG); $card->addProperty('PHOTO', $image->__toString(), array('ENCODING' => 'b', 'TYPE' => $image->mimeType())); } + $now = new DateTime; + $card->setString('REV', $now->format(DateTime::W3C)); if(!OC_Contacts_VCard::edit($id,$card)) { bailOut('Error saving contact.'); } |