| @@ 842-847 (lines=6) @@ | ||
| 839 | $context['attachments']['quantity'] = 0; |
|
| 840 | ||
| 841 | // If this isn't a new post, check the current attachments. |
|
| 842 | if (isset($_REQUEST['msg'])) |
|
| 843 | { |
|
| 844 | $context['attachments']['quantity'] = count($context['current_attachments']); |
|
| 845 | foreach ($context['current_attachments'] as $attachment) |
|
| 846 | $context['attachments']['total_size'] += $attachment['size']; |
|
| 847 | } |
|
| 848 | ||
| 849 | // A bit of house keeping first. |
|
| 850 | if (!empty($_SESSION['temp_attachments']) && count($_SESSION['temp_attachments']) == 1) |
|
| @@ 155-160 (lines=6) @@ | ||
| 152 | $context['attachments']['quantity'] = 0; |
|
| 153 | ||
| 154 | // If this isn't a new post, check the current attachments. |
|
| 155 | if (isset($_REQUEST['msg'])) |
|
| 156 | { |
|
| 157 | $context['attachments']['quantity'] = count($context['current_attachments']); |
|
| 158 | foreach ($context['current_attachments'] as $attachment) |
|
| 159 | $context['attachments']['total_size'] += $attachment['size']; |
|
| 160 | } |
|
| 161 | ||
| 162 | // A bit of house keeping first. |
|
| 163 | if (!empty($_SESSION['temp_attachments']) && count($_SESSION['temp_attachments']) == 1) |
|