mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Don't start session in CLI
This commit is contained in:
parent
fea902c946
commit
ae60728efc
1 changed files with 5 additions and 2 deletions
|
|
@ -362,8 +362,11 @@ class Context
|
||||||
|
|
||||||
// start session
|
// start session
|
||||||
$relax_key_checks = ((self::$_get_vars->act ?? null) === 'procFileUpload' && preg_match('/shockwave\s?flash/i', $_SERVER['HTTP_USER_AGENT'] ?? ''));
|
$relax_key_checks = ((self::$_get_vars->act ?? null) === 'procFileUpload' && preg_match('/shockwave\s?flash/i', $_SERVER['HTTP_USER_AGENT'] ?? ''));
|
||||||
Rhymix\Framework\Session::checkSSO($site_module_info);
|
if (\PHP_SAPI !== 'cli')
|
||||||
Rhymix\Framework\Session::start(false, $relax_key_checks);
|
{
|
||||||
|
Rhymix\Framework\Session::checkSSO($site_module_info);
|
||||||
|
Rhymix\Framework\Session::start(false, $relax_key_checks);
|
||||||
|
}
|
||||||
|
|
||||||
// start debugging
|
// start debugging
|
||||||
Rhymix\Framework\Debug::isEnabledForCurrentUser();
|
Rhymix\Framework\Debug::isEnabledForCurrentUser();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue