mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
[Configurable] Show magnet-links for guests (#1712)
* [Configurable] Show magnet links for guests * Update mysql.sql * Update legacy-changes.txt * Updated * Update main.php * Update functions.php * Updated * Update viewforum.tpl * Update viewtopic_attach.tpl * Update viewforum.tpl * Update CHANGELOG.md
This commit is contained in:
parent
ea1e533a5a
commit
60899a0184
11 changed files with 18 additions and 5 deletions
|
@ -1812,7 +1812,7 @@ function create_magnet(string $infohash, string $infohash_v2, string $auth_key,
|
|||
}
|
||||
|
||||
// Only for registered users
|
||||
if (IS_GUEST && $bb_cfg['bt_tor_browse_only_reg']) {
|
||||
if (!$bb_cfg['magnet_links_for_guests'] && IS_GUEST) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue