mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 03:39:57 +03:00
fixes #2335 do not rebuild user_cache for Batch Manager Unit Mode
This commit is contained in:
parent
33b57be509
commit
daef1ed375
1 changed files with 17 additions and 3 deletions
|
@ -72,9 +72,23 @@ if (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = build_user( $user['id'],
|
$page['user_use_cache'] = true;
|
||||||
( defined('IN_ADMIN') and IN_ADMIN ) ? false : true // use cache ?
|
if (defined('IN_ADMIN') and IN_ADMIN)
|
||||||
);
|
{
|
||||||
|
$page['user_use_cache'] = false;
|
||||||
|
}
|
||||||
|
elseif (
|
||||||
|
isset($_REQUEST['method'])
|
||||||
|
and 'pwg.images.setInfo' == $_REQUEST['method']
|
||||||
|
and isset($_SERVER['HTTP_REFERER'])
|
||||||
|
and preg_match('/\/admin\.php\?page=/', $_SERVER['HTTP_REFERER'])
|
||||||
|
)
|
||||||
|
{
|
||||||
|
$page['user_use_cache'] = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$user = build_user( $user['id'], $page['user_use_cache']);
|
||||||
|
|
||||||
if ($conf['browser_language'] and (is_a_guest() or is_generic()) and $language = get_browser_language())
|
if ($conf['browser_language'] and (is_a_guest() or is_generic()) and $language = get_browser_language())
|
||||||
{
|
{
|
||||||
$user['language'] = $language;
|
$user['language'] = $language;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue