mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Demo mode: Allow registering torrents by default (#1440)
* Demo mode: Allow registering torrents by default * Update CHANGELOG.md
This commit is contained in:
parent
cfcda68a99
commit
8ba00d5966
2 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||||
|
|
|
@ -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");
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue