mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 10:42:59 +02:00
issue #2296 for install.php, we always need class PwgSession defined
This commit is contained in:
@@ -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'))
|
||||||
|
|||||||
Reference in New Issue
Block a user