|
@@ -906,12 +906,12 @@ function Post($post_errors = array())
|
|
|
// Show any errors which might of occured.
|
|
|
if (!empty($attachment['errors']))
|
|
|
{
|
|
|
- $txt['error_attach_errrors'] = empty($txt['error_attach_errrors']) ? '<br />' : '';
|
|
|
- $txt['error_attach_errrors'] .= vsprintf($txt['attach_warning'], $attachment['name']) . '<div style="padding: 0 1em;">';
|
|
|
+ $txt['error_attach_errors'] = empty($txt['error_attach_errors']) ? '<br />' : '';
|
|
|
+ $txt['error_attach_errors'] .= vsprintf($txt['attach_warning'], $attachment['name']) . '<div style="padding: 0 1em;">';
|
|
|
foreach ($attachment['errors'] as $error)
|
|
|
- $txt['error_attach_errrors'] .= (is_array($error) ? vsprintf($txt[$error[0]], $error[1]) : $txt[$error]) . '<br />';
|
|
|
- $txt['error_attach_errrors'] .= '</div>';
|
|
|
- $post_errors[] = 'attach_errrors';
|
|
|
+ $txt['error_attach_errors'] .= (is_array($error) ? vsprintf($txt[$error[0]], $error[1]) : $txt[$error]) . '<br />';
|
|
|
+ $txt['error_attach_errors'] .= '</div>';
|
|
|
+ $post_errors[] = 'attach_errors';
|
|
|
|
|
|
// Take out the trash.
|
|
|
unset($_SESSION['temp_attachments'][$attachID]);
|