mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-25 19:00:03 +03:00
related to #2311 avoid loading user cache on install
This commit is contained in:
parent
eca144fe47
commit
eaa8a66a9b
1 changed files with 3 additions and 1 deletions
|
@ -479,7 +479,9 @@ else
|
||||||
session_set_cookie_params(0, cookie_path());
|
session_set_cookie_params(0, cookie_path());
|
||||||
register_shutdown_function('session_write_close');
|
register_shutdown_function('session_write_close');
|
||||||
|
|
||||||
$user = build_user(1, true);
|
// we don't load user cache because since Piwigo 15.4.0 the calculation of user
|
||||||
|
// cache requires $logger which is not instanciated
|
||||||
|
$user = build_user(1, false);
|
||||||
log_user($user['id'], false);
|
log_user($user['id'], false);
|
||||||
|
|
||||||
$user['preferences']['show_whats_new_'.get_branch_from_version(PHPWG_VERSION)] = false;
|
$user['preferences']['show_whats_new_'.get_branch_from_version(PHPWG_VERSION)] = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue