Demo mode: Allow registering torrents by default (#1440)

* Demo mode: Allow registering torrents by default

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-04-06 11:10:21 +07:00 committed by GitHub
commit 8ba00d5966
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -7,6 +7,7 @@
- Release 2.4.3 🐎 ([belomaxorka](https://github.com/belomaxorka)) - Release 2.4.3 🐎 ([belomaxorka](https://github.com/belomaxorka))
- Improved app debug [\#1438](https://github.com/torrentpier/torrentpier/pull/1438) ([belomaxorka](https://github.com/belomaxorka)) - Improved app debug [\#1438](https://github.com/torrentpier/torrentpier/pull/1438) ([belomaxorka](https://github.com/belomaxorka))
- Demo mode: Allow registering torrents by default [\#1440](https://github.com/torrentpier/torrentpier/pull/1440) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435) ([belomaxorka](https://github.com/belomaxorka)) - Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435) ([belomaxorka](https://github.com/belomaxorka))
## [v2.4.2](https://github.com/torrentpier/torrentpier/tree/v2.4.2) (2024-03-30) ## [v2.4.2](https://github.com/torrentpier/torrentpier/tree/v2.4.2) (2024-03-30)

View file

@ -53,3 +53,8 @@ if ($posts_days = (int)$bb_cfg['posts_cache_days_keep']) {
if (empty($bb_cfg['bt_announce_url'])) { if (empty($bb_cfg['bt_announce_url'])) {
bb_update_config(['bt_announce_url' => FULL_URL . 'bt/announce.php']); bb_update_config(['bt_announce_url' => FULL_URL . 'bt/announce.php']);
} }
// [Demo mode] Allow registering torrents by default
if (IN_DEMO_MODE) {
DB()->query("UPDATE " . BB_FORUMS . " SET allow_reg_tracker = 1 WHERE allow_reg_tracker = 0");
}