Sources/Register.php 1 location
|
@@ 437-442 (lines=6) @@
|
| 434 |
|
$smcFunc['db_free_result']($request); |
| 435 |
|
|
| 436 |
|
// Process any errors. |
| 437 |
|
if (!empty($custom_field_errors)) |
| 438 |
|
{ |
| 439 |
|
loadLanguage('Errors'); |
| 440 |
|
foreach ($custom_field_errors as $error) |
| 441 |
|
$reg_errors[] = vsprintf($txt['error_' . $error[0]], $error[1]); |
| 442 |
|
} |
| 443 |
|
|
| 444 |
|
// Lets check for other errors before trying to register the member. |
| 445 |
|
if (!empty($reg_errors)) |
Sources/ReportToMod.php 1 location
|
@@ 203-212 (lines=10) @@
|
| 200 |
|
$post_errors[] = 'post_too_long'; |
| 201 |
|
|
| 202 |
|
// Any errors? |
| 203 |
|
if (!empty($post_errors)) |
| 204 |
|
{ |
| 205 |
|
loadLanguage('Errors'); |
| 206 |
|
|
| 207 |
|
$context['post_errors'] = array(); |
| 208 |
|
foreach ($post_errors as $post_error) |
| 209 |
|
$context['post_errors'][$post_error] = $txt['error_' . $post_error]; |
| 210 |
|
|
| 211 |
|
return ReportToModerator(); |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
if (isset($_POST['msg'])) |
| 215 |
|
{ |