issue #2296 for install.php, we always need class PwgSession defined

This commit is contained in:
plegall
2024-12-20 11:05:46 +01:00
parent 627aa045ed
commit 547c8a9b94
+5 -4
View File
@@ -10,10 +10,6 @@
* @package functions\session * @package functions\session
*/ */
if (isset($conf['session_save_handler'])
and ($conf['session_save_handler'] == 'db')
and defined('PHPWG_INSTALLED'))
{
// In PHP 8.4+ calling session_set_save_handler with // In PHP 8.4+ calling session_set_save_handler with
// two parameters is deprecated. To correct this, // two parameters is deprecated. To correct this,
// we pass a SessionHandlerInterface instance. // we pass a SessionHandlerInterface instance.
@@ -28,6 +24,11 @@ if (isset($conf['session_save_handler'])
{ {
include_once(PHPWG_ROOT_PATH.'/include/pwgsession.class.php'); include_once(PHPWG_ROOT_PATH.'/include/pwgsession.class.php');
} }
if (isset($conf['session_save_handler'])
and ($conf['session_save_handler'] == 'db')
and defined('PHPWG_INSTALLED'))
{
session_set_save_handler(new PwgSession()); session_set_save_handler(new PwgSession());
if (function_exists('ini_set')) if (function_exists('ini_set'))