Fix photo edition by other users (Closes #1160)
[platal.git] / templates / include / form.valid.photos.tpl
index b7382f9..6bbf8ec 100644 (file)
@@ -23,9 +23,9 @@
 <tr class="pair">
   <td class="titre">Photos</td>
   <td>
-    <img src="photo/{$valid->user->login()}" style="width:110px;" alt=" [ PHOTO ] " />
+    <img src="photo/{$valid->profile->hrid()}" style="width:110px;" alt=" [ PHOTO ] " />
     &nbsp;&nbsp;&nbsp;&nbsp;
-    <img src="photo/{$valid->user->login()}/req" style="width:110px;" alt=" [ PHOTO ] " />
+    <img src="photo/{$valid->profile->hrid()}/req" style="width:110px;" alt=" [ PHOTO ] " />
   </td>
 </tr>