mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Updated
This commit is contained in:
parent
ea54f2c6ba
commit
b1c751ef23
2 changed files with 4 additions and 3 deletions
|
@ -89,7 +89,8 @@ if (is_file(BB_PATH . '/library/config.local.php')) {
|
||||||
/**
|
/**
|
||||||
* Error reporting
|
* Error reporting
|
||||||
*/
|
*/
|
||||||
if (env('APP_ENV') === 'local') {
|
define('APP_ENV', env('APP_ENV', 'production'));
|
||||||
|
if (APP_ENV === 'local') {
|
||||||
define('DBG_USER', true); // forced debug
|
define('DBG_USER', true); // forced debug
|
||||||
} else {
|
} else {
|
||||||
define('DBG_USER', isset($_COOKIE[COOKIE_DBG]));
|
define('DBG_USER', isset($_COOKIE[COOKIE_DBG]));
|
||||||
|
@ -362,7 +363,7 @@ function version_code(string $version): int
|
||||||
* Some shared defines
|
* Some shared defines
|
||||||
*/
|
*/
|
||||||
// Initialize demo mode
|
// Initialize demo mode
|
||||||
define('IN_DEMO_MODE', env('APP_DEMO_MODE'));
|
define('IN_DEMO_MODE', env('APP_DEMO_MODE', false));
|
||||||
|
|
||||||
// Version code
|
// Version code
|
||||||
define('VERSION_CODE', version_code($bb_cfg['tp_version']));
|
define('VERSION_CODE', version_code($bb_cfg['tp_version']));
|
||||||
|
|
|
@ -22,7 +22,7 @@ class CronHelper
|
||||||
*/
|
*/
|
||||||
public static function isEnabled(): bool
|
public static function isEnabled(): bool
|
||||||
{
|
{
|
||||||
return env('APP_CRON_ENABLED');
|
return env('APP_CRON_ENABLED', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue