mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
TorrentPier Aurochs release preparation.
This commit is contained in:
parent
e9a76e6a5c
commit
3e8b494572
21 changed files with 709 additions and 502 deletions
|
@ -40,7 +40,7 @@ if (!$torrent) {
|
|||
}
|
||||
|
||||
$filename = get_attachments_dir() . '/' . $torrent['physical_filename'];
|
||||
if (!$file_contents = file_get_contents($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 {
|
||||
|
@ -48,7 +48,7 @@ if (!$file_contents = file_get_contents($filename)) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!$tor = bdecode($file_contents)) {
|
||||
if (!$tor = \Rych\Bencode\Bencode::decode($file_contents)) {
|
||||
return $lang['TORFILE_INVALID'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue