Changeset 25786 for extensions/GuestBook
- Timestamp:
- Dec 4, 2013, 10:03:45 PM (11 years ago)
- Location:
- extensions/GuestBook
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GuestBook/include/functions_comment.inc.php
r24889 r25786 73 73 { 74 74 $comm['email'] = $user['email']; 75 } 76 else if ( empty($comm['email']) and $conf['comments_email_mandatory'] ) 77 { 78 array_push($page['errors'], l10n('mail address must be like xxx@yyy.eee (example : jack@altern.org)')); 79 $comment_action='reject'; 75 80 } 76 81 else if ( !empty($comm['email']) and !email_check_format($comm['email']) ) -
extensions/GuestBook/template/guestbook.tpl
r25215 r25786 8 8 {/if} 9 9 10 {if $ add_comment.EMAIL_MANDATORY and (!$add_comment.IS_LOGGED or empty($add_comment.EMAIL))}10 {if $comment_add.EMAIL_MANDATORY and (!$comment_add.IS_LOGGED or empty($comment_add.EMAIL))} 11 11 var email = new LiveValidation('email', {ldelim} onlyOnSubmit: true }); 12 12 email.add(Validate.Presence, {ldelim} failureMessage: "{'Please enter your e-mail'|@translate}" });
Note: See TracChangeset
for help on using the changeset viewer.