mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
parent
fe953bd3c2
commit
eecbe070c9
4 changed files with 9 additions and 12 deletions
|
@ -25,11 +25,7 @@ if (!$torrent) {
|
|||
|
||||
$filename = get_attachments_dir() . '/' . $torrent['physical_filename'];
|
||||
if (!file_exists($filename) || !$file_contents = file_get_contents($filename)) {
|
||||
if (IS_AM) {
|
||||
$this->ajax_die($lang['ERROR_NO_ATTACHMENT'] . "\n\n" . htmlCHR($filename));
|
||||
} else {
|
||||
$this->ajax_die($lang['ERROR_NO_ATTACHMENT']);
|
||||
}
|
||||
$this->ajax_die($lang['ERROR_NO_ATTACHMENT'] . "\n\n" . htmlCHR($filename));
|
||||
}
|
||||
|
||||
if (!$tor = \Arokettu\Bencode\Bencode::decode($file_contents, dictType: \Arokettu\Bencode\Bencode\Collection::ARRAY)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue