mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
move is_fpm_mode() to global functions
This commit is contained in:
@@ -1671,3 +1671,8 @@ JS;
|
||||
\Nexus\Nexus::js("js/crypto-js.js", 'footer', true);
|
||||
\Nexus\Nexus::js($js, 'footer', false);
|
||||
}
|
||||
|
||||
function is_fpm_mode(): bool
|
||||
{
|
||||
return php_sapi_name() === 'fpm-fcgi';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user