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

@ -53,3 +53,8 @@ if ($posts_days = (int)$bb_cfg['posts_cache_days_keep']) {
if (empty($bb_cfg['bt_announce_url'])) {
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");
}