mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-20 00:21:42 +02:00
[feature/attach-dl] Putting some old code under "else if ($download_id)".
PHPBB3-11042
This commit is contained in:
@@ -193,13 +193,19 @@ if (empty($attachments))
|
|||||||
}
|
}
|
||||||
else if ($download_id)
|
else if ($download_id)
|
||||||
{
|
{
|
||||||
|
// sizeof($attachments) == 1
|
||||||
$attachment = current($attachments);
|
$attachment = current($attachments);
|
||||||
}
|
|
||||||
|
|
||||||
if ($attachment && ((!$attachment['in_message'] && !$config['allow_attachments']) || ($attachment['in_message'] && !$config['allow_pm_attach'])))
|
// in_message = 1 means it's in a private message
|
||||||
|
if (!$attachment['in_message'] && !$config['allow_attachments'] || $attachment['in_message'] && !$config['allow_pm_attach'])
|
||||||
|
{
|
||||||
|
send_status_line(404, 'Not Found');
|
||||||
|
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
send_status_line(404, 'Not Found');
|
// sizeof($attachments) > 1
|
||||||
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$row = array();
|
$row = array();
|
||||||
|
Reference in New Issue
Block a user