mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge branch '5' into 6
This commit is contained in:
commit
a7a431d366
@ -258,8 +258,8 @@ class Environment
|
|||||||
*/
|
*/
|
||||||
public static function isCli()
|
public static function isCli()
|
||||||
{
|
{
|
||||||
if (self::$isCliOverride !== null) {
|
if (Environment::$isCliOverride !== null) {
|
||||||
return self::$isCliOverride;
|
return Environment::$isCliOverride;
|
||||||
}
|
}
|
||||||
return in_array(strtolower(php_sapi_name() ?? ''), ['cli', 'phpdbg']);
|
return in_array(strtolower(php_sapi_name() ?? ''), ['cli', 'phpdbg']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user