diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-02-22 05:31:08 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-02-22 05:31:08 +0000 |
commit | 20ba76b753f53c00fece9cc727e60414c7e95570 (patch) | |
tree | 7ee1505efec7140307eb2bc94905cba3b0e268d8 /admin | |
parent | cea58b64ee31c3b34887845bef6761edee3c6fc7 (diff) |
- 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
Diffstat (limited to 'admin')
-rw-r--r-- | admin/include/functions_notification_by_mail.inc.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/admin/include/functions_notification_by_mail.inc.php b/admin/include/functions_notification_by_mail.inc.php index 10ffd15ae..d98c5a997 100644 --- a/admin/include/functions_notification_by_mail.inc.php +++ b/admin/include/functions_notification_by_mail.inc.php @@ -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'])
{
|