Merge branch '4.13' into 4

This commit is contained in:
github-actions 2023-11-18 14:24:13 +00:00
commit 814ac49d09

View File

@ -234,13 +234,13 @@ class Deprecation
public static function isEnabled(): bool public static function isEnabled(): bool
{ {
if (!Director::isDev()) {
return false;
}
if (Environment::hasEnv('SS_DEPRECATION_ENABLED')) { if (Environment::hasEnv('SS_DEPRECATION_ENABLED')) {
$envVar = Environment::getEnv('SS_DEPRECATION_ENABLED'); $envVar = Environment::getEnv('SS_DEPRECATION_ENABLED');
return self::varAsBoolean($envVar); return self::varAsBoolean($envVar);
} }
if (!Director::isDev()) {
return false;
}
return static::$currentlyEnabled; return static::$currentlyEnabled;
} }