diff --git a/.env.example b/.env.example index 5c2011f70..d9aa2df2a 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ # Common params +APP_ENV=production APP_CRON_ENABLED=true APP_DEMO_MODE=false diff --git a/CHANGELOG.md b/CHANGELOG.md index 038d9691f..68008dd74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ - [PHP 8.4] Fixed some deprecations [\#1718](https://github.com/torrentpier/torrentpier/pull/1718) ([belomaxorka](https://github.com/belomaxorka)) - [Configurable] Show magnet-links for guests [\#1712](https://github.com/torrentpier/torrentpier/pull/1712) ([belomaxorka](https://github.com/belomaxorka)) - Set `cursor: pointer;` for buttons, inputs (buttons) [\#1710](https://github.com/torrentpier/torrentpier/pull/1710), [\#1711](https://github.com/torrentpier/torrentpier/pull/1711) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713), [\#1715](https://github.com/torrentpier/torrentpier/pull/1715), [\#1717](https://github.com/torrentpier/torrentpier/pull/1717) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713), [\#1715](https://github.com/torrentpier/torrentpier/pull/1715), [\#1717](https://github.com/torrentpier/torrentpier/pull/1717), [\#1719](https://github.com/torrentpier/torrentpier/pull/1719) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1704](https://github.com/torrentpier/torrentpier/pull/1704), [\#1706](https://github.com/torrentpier/torrentpier/pull/1706), [\#1714](https://github.com/torrentpier/torrentpier/pull/1714), [\#1716](https://github.com/torrentpier/torrentpier/pull/1716) ([Exileum](https://github.com/Exileum)) ## [v2.4.5-rc.1](https://github.com/torrentpier/torrentpier/tree/v2.4.5-rc.1) (2024-12-08) diff --git a/common.php b/common.php index 7763fc7f5..cfa299afa 100644 --- a/common.php +++ b/common.php @@ -89,7 +89,11 @@ if (is_file(BB_PATH . '/library/config.local.php')) { /** * Error reporting */ -define('DBG_USER', isset($_COOKIE[COOKIE_DBG])); +if (env('APP_ENV') === 'local') { + define('DBG_USER', true); // forced debug +} else { + define('DBG_USER', isset($_COOKIE[COOKIE_DBG])); +} (new \TorrentPier\Dev()); /** diff --git a/library/config.php b/library/config.php index 0427214a2..319586bc8 100644 --- a/library/config.php +++ b/library/config.php @@ -23,8 +23,7 @@ $bb_cfg['tp_release_date'] = 'XX-XX-2025'; $bb_cfg['tp_release_codename'] = 'Cattle'; // Increase version number after changing JS or CSS -// Note: by default used same as TorrentPier version -$bb_cfg['js_ver'] = $bb_cfg['css_ver'] = $bb_cfg['tp_version']; +$bb_cfg['js_ver'] = $bb_cfg['css_ver'] = 1; // Database // Settings for database ['db']['srv_name'] => (array) srv_cfg;