|
@@ 995-1001 (lines=7) @@
|
| 992 |
|
if ($attachID != 'initial_error' && strpos($attachID, 'post_tmp_' . $user_info['id']) === false) |
| 993 |
|
continue; |
| 994 |
|
|
| 995 |
|
if ($attachID == 'initial_error') |
| 996 |
|
{ |
| 997 |
|
$txt['error_attach_initial_error'] = $txt['attach_no_upload'] . '<div style="padding: 0 1em;">' . (is_array($attachment) ? vsprintf($txt[$attachment[0]], $attachment[1]) : $txt[$attachment]) . '</div>'; |
| 998 |
|
$post_errors[] = 'attach_initial_error'; |
| 999 |
|
unset($_SESSION['temp_attachments']); |
| 1000 |
|
break; |
| 1001 |
|
} |
| 1002 |
|
|
| 1003 |
|
// Show any errors which might have occured. |
| 1004 |
|
if (!empty($attachment['errors'])) |
|
@@ 1903-1910 (lines=8) @@
|
| 1900 |
|
continue; |
| 1901 |
|
|
| 1902 |
|
// If there was an initial error just show that message. |
| 1903 |
|
if ($attachID == 'initial_error') |
| 1904 |
|
{ |
| 1905 |
|
$attach_errors[] = '<dt>' . $txt['attach_no_upload'] . '</dt>'; |
| 1906 |
|
$attach_errors[] = '<dd>' . (is_array($attachment) ? vsprintf($txt[$attachment[0]], $attachment[1]) : $txt[$attachment]) . '</dd>'; |
| 1907 |
|
|
| 1908 |
|
unset($_SESSION['temp_attachments']); |
| 1909 |
|
break; |
| 1910 |
|
} |
| 1911 |
|
|
| 1912 |
|
$attachmentOptions = array( |
| 1913 |
|
'post' => isset($_REQUEST['msg']) ? $_REQUEST['msg'] : 0, |