Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4
[platal.git] / templates / profile / jobs.job.tpl
index dde72e9..214b233 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2013 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
       </td>
     </tr>
     {include file="geoloc/form.address.tpl" prefname="`$jobpref`[w_address]"
-                     prefid=$jobid address=$job.w_address class="pair"}
+                     prefid=$jobid address=$job.w_address class="pair" hiddenaddr=$hiddenaddr}
+    <tr class="pair" {if $hiddenjob || $hiddenaddr}style="display: none"{/if}>
+      <td colspan="2">
+        <label>
+          <input type="checkbox" name="{$jobpref}[w_address][mail]" {if $job.w_address.mail}checked="checked"{/if} />
+            on peut {if $isMe}m'{/if}y envoyer du courrier par la poste
+        </label>
+      </td>
+    </tr>
     {if $hiddenaddr}
     <tr class="pair">
       <td class="titre" colspan="2">Adresse (masquée)</td>