mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +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
|
||||
$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);
|
||||
Rhymix\Framework\Session::start(false, $relax_key_checks);
|
||||
if (\PHP_SAPI !== 'cli')
|
||||
{
|
||||
Rhymix\Framework\Session::checkSSO($site_module_info);
|
||||
Rhymix\Framework\Session::start(false, $relax_key_checks);
|
||||
}
|
||||
|
||||
// start debugging
|
||||
Rhymix\Framework\Debug::isEnabledForCurrentUser();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue