mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update dl.php
This commit is contained in:
parent
529da96e1c
commit
f1bfe9ca58
7
dl.php
7
dl.php
@ -201,7 +201,10 @@ if (!in_array($attachment['extension'], $allowed_extensions))
|
||||
bb_die(sprintf($lang['EXTENSION_DISABLED_AFTER_POSTING'], $attachment['extension']) . "<br /><br />" . $lang['FILENAME'] . ": " . $attachment['physical_filename']);
|
||||
}
|
||||
|
||||
$download_mode = intval($download_mode[$attachment['extension']]);
|
||||
if (!$download_mode = intval($download_mode[$attachment['extension']]))
|
||||
{
|
||||
bb_die('Incorrect download mode');
|
||||
}
|
||||
|
||||
if ($thumbnail)
|
||||
{
|
||||
@ -254,5 +257,5 @@ elseif ($download_mode == INLINE_LINK)
|
||||
}
|
||||
else
|
||||
{
|
||||
bb_die('Incorrect download mode');
|
||||
bb_die('Incorrect download mode: ' . $download_mode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user