Skip to content

Commit

Permalink
bug:2503 in register.php bad template var for 'obligatory_user_mail_a…
Browse files Browse the repository at this point in the history
…ddress'

git-svn-id: http://piwigo.org/svn/trunk@12610 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Nov 12, 2011
1 parent 147be90 commit 7f28ff8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion register.php
Expand Up @@ -87,7 +87,8 @@
'F_KEY' => $registration_post_key,
'F_ACTION' => 'register.php',
'F_LOGIN' => $login,
'F_EMAIL' => $email
'F_EMAIL' => $email,
'obligatory_user_mail_address' => $conf['obligatory_user_mail_address'],
));

//-------------------------------------------------------------- errors display
Expand Down
4 changes: 2 additions & 2 deletions themes/default/template/register.tpl
Expand Up @@ -47,10 +47,10 @@
</li>
<li>
<span class="property">
<label for="mail_address">{if not ($main.obligatory_user_mail_address)}* {/if}{'Email address'|@translate}</label>
<label for="mail_address">{if $obligatory_user_mail_address}* {/if}{'Email address'|@translate}</label>
</span>
<input type="text" name="mail_address" id="mail_address" value="{$F_EMAIL}" >
{if ($main.obligatory_user_mail_address)}
{if not $obligatory_user_mail_address}
({'useful when password forgotten'|@translate})
{/if}
</li>
Expand Down

0 comments on commit 7f28ff8

Please sign in to comment.