mirror of
https://github.com/torrentpier/torrentpier.git
synced 2025-03-12 04:35:42 -07:00
feat: Used TORRENT_MIMETYPE
constant instead of hardcoded string (#1757)
This commit is contained in:
parent
1122c603dd
commit
4b0d270c89
2
dl.php
2
dl.php
@ -161,7 +161,7 @@ if (!$authorised) {
|
||||
$datastore->rm('cat_forums');
|
||||
|
||||
// Check tor status
|
||||
if (!IS_AM && str_contains($attachment['mimetype'], 'bittorrent')) {
|
||||
if (!IS_AM && ($attachment['mimetype'] === TORRENT_MIMETYPE)) {
|
||||
$sql = 'SELECT tor_status, poster_id FROM ' . BB_BT_TORRENTS . ' WHERE attach_id = ' . (int)$attachment['attach_id'];
|
||||
|
||||
if (!($result = DB()->sql_query($sql))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user