This commit is contained in:
Roman Kelesidis 2025-01-01 14:21:12 +07:00
commit b1c751ef23
2 changed files with 4 additions and 3 deletions

View file

@ -89,7 +89,8 @@ if (is_file(BB_PATH . '/library/config.local.php')) {
/**
* Error reporting
*/
if (env('APP_ENV') === 'local') {
define('APP_ENV', env('APP_ENV', 'production'));
if (APP_ENV === 'local') {
define('DBG_USER', true); // forced debug
} else {
define('DBG_USER', isset($_COOKIE[COOKIE_DBG]));
@ -362,7 +363,7 @@ function version_code(string $version): int
* Some shared defines
*/
// Initialize demo mode
define('IN_DEMO_MODE', env('APP_DEMO_MODE'));
define('IN_DEMO_MODE', env('APP_DEMO_MODE', false));
// Version code
define('VERSION_CODE', version_code($bb_cfg['tp_version']));

View file

@ -22,7 +22,7 @@ class CronHelper
*/
public static function isEnabled(): bool
{
return env('APP_CRON_ENABLED');
return env('APP_CRON_ENABLED', true);
}
/**