mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Added bt_announce_url
autofill (#1331)
* `bt_announce_url` autofill * Update CHANGELOG.md
This commit is contained in:
parent
1ba5576ad5
commit
f28b3e2d80
3 changed files with 7 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
**Merged pull requests:**
|
||||
|
||||
- Release 2.4.1 🦉 ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky))
|
||||
- Added `bt_announce_url` autofill [\#1331](https://github.com/torrentpier/torrentpier/pull/1331) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Added support for fastly cdn [\#1327](https://github.com/torrentpier/torrentpier/pull/1327) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky))
|
||||
- Use `target="_blank"` in admin for profile_url() redirects [\#1330](https://github.com/torrentpier/torrentpier/pull/1330) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Used declensions for days in some cases [\#1310](https://github.com/torrentpier/torrentpier/pull/1310) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
|
|
@ -506,7 +506,7 @@ VALUES ('allow_autologin', '1'),
|
|||
('birthday_check_day', '7'),
|
||||
('bt_add_auth_key', '1'),
|
||||
('bt_allow_spmode_change', '1'),
|
||||
('bt_announce_url', 'https://demo.torrentpier.com/bt/announce.php'),
|
||||
('bt_announce_url', ''),
|
||||
('bt_disable_dht', '0'),
|
||||
('bt_check_announce_url', '0'),
|
||||
('bt_del_addit_ann_urls', '1'),
|
||||
|
|
|
@ -394,6 +394,11 @@ $user = new TorrentPier\Legacy\Common\User();
|
|||
|
||||
$userdata =& $user->data;
|
||||
|
||||
// Set announcer default URL
|
||||
if (empty($bb_cfg['bt_announce_url'])) {
|
||||
bb_update_config(['bt_announce_url' => FULL_URL . 'bt/announce.php']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cron
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue