Fixes cache problems when updating an event image.
authorStéphane Jacob <sj@m4x.org>
Sun, 10 Jan 2010 00:28:21 +0000 (01:28 +0100)
committerStéphane Jacob <sj@m4x.org>
Sun, 10 Jan 2010 00:28:21 +0000 (01:28 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/events/form.tpl

index 67472ee..68550e6 100644 (file)
         {if $eid && $img}
         <div style="float: left; text-align: center">
           <em>Image actuelle</em><br />
-          <img src="events/photo/{$eid}" alt="Image actuelle" /><br />
+          <img src="events/photo/{$eid}?{$smarty.now}" alt="Image actuelle" /><br />
           <input type="submit" name="action" value="Pas d'image" />
         </div>
         {/if}
         {if $upload && $upload->exists()}
         <div style="float: right; text-align: center">
           <em>Nouvelle image</em><br />
-          <img src="events/photo" alt="Nouvelle Image" /><br />
+          <img src="events/photo?{$smarty.now}" alt="Nouvelle Image" /><br />
           <input type="submit" name="action" value="Supprimer l'image" />
         </div>
         {/if}