mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
- change the way conf['guest_access'] is handled so that web services work correctly (and also nbm.php and feed.php)
git-svn-id: http://piwigo.org/svn/trunk@1850 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
cea58b64ee
commit
20ba76b753
6 changed files with 32 additions and 36 deletions
|
@ -261,11 +261,7 @@ function set_user_on_env_nbm(&$nbm_user, $is_action_send)
|
|||
{
|
||||
global $user, $lang, $lang_info, $env_nbm;
|
||||
|
||||
$user = array();
|
||||
$user['id'] = $nbm_user['user_id'];
|
||||
$user = array_merge($user, getuserdata($user['id'], true));
|
||||
|
||||
list($user['template'], $user['theme']) = explode('/', $user['template']);
|
||||
$user = build_user( $nbm_user['user_id'], true );
|
||||
|
||||
if ($env_nbm['last_language'] != $user['language'])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue