mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
feat: Used TORRENT_MIMETYPE
constant instead of hardcoded string (#1757)
This commit is contained in:
parent
1122c603dd
commit
4b0d270c89
1 changed files with 1 additions and 1 deletions
2
dl.php
2
dl.php
|
@ -161,7 +161,7 @@ if (!$authorised) {
|
||||||
$datastore->rm('cat_forums');
|
$datastore->rm('cat_forums');
|
||||||
|
|
||||||
// Check tor status
|
// 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'];
|
$sql = 'SELECT tor_status, poster_id FROM ' . BB_BT_TORRENTS . ' WHERE attach_id = ' . (int)$attachment['attach_id'];
|
||||||
|
|
||||||
if (!($result = DB()->sql_query($sql))) {
|
if (!($result = DB()->sql_query($sql))) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue