Changeset 25018 for trunk/include/functions_comment.inc.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_comment.inc.php
r21817 r25018 94 94 if ($conf['comments_author_mandatory']) 95 95 { 96 array_push($infos, l10n('Username is mandatory'));96 $infos[] = l10n('Username is mandatory'); 97 97 $comment_action='reject'; 98 98 } … … 111 111 if ( $row['user_exists'] == 1 ) 112 112 { 113 array_push($infos, l10n('This login is already used by another user'));113 $infos[] = l10n('This login is already used by another user'); 114 114 $comment_action='reject'; 115 115 } … … 142 142 if (!url_check_format($comm['website_url'])) 143 143 { 144 array_push($infos, l10n('Your website URL is invalid'));144 $infos[] = l10n('Your website URL is invalid'); 145 145 $comment_action='reject'; 146 146 } … … 156 156 else if ($conf['comments_email_mandatory']) 157 157 { 158 array_push($infos, l10n('Email address is missing. Please specify an email address.'));158 $infos[] = l10n('Email address is missing. Please specify an email address.'); 159 159 $comment_action='reject'; 160 160 } … … 162 162 else if (!email_check_format($comm['email'])) 163 163 { 164 array_push($infos, l10n('mail address must be like xxx@yyy.eee (example : jack@altern.org)'));164 $infos[] = l10n('mail address must be like xxx@yyy.eee (example : jack@altern.org)'); 165 165 $comment_action='reject'; 166 166 } … … 193 193 if ( $counter > 0 ) 194 194 { 195 array_push( $infos, l10n('Anti-flood system : please wait for a moment before trying to post another comment'));195 $infos[] = l10n('Anti-flood system : please wait for a moment before trying to post another comment'); 196 196 $comment_action='reject'; 197 197 }
Note: See TracChangeset
for help on using the changeset viewer.