diff options
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 1aa6e8d26..56a8d8b3b 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -615,12 +615,13 @@ function drupal_is_denied($type, $mask) { * * @return Object - the user object. */ -function drupal_anonymous_user() { +function drupal_anonymous_user($session = '') { $user = new stdClass(); $user->uid = 0; $user->hostname = $_SERVER['REMOTE_ADDR']; $user->roles = array(); $user->roles[DRUPAL_ANONYMOUS_RID] = 'anonymous user'; + $user->session = $session; return $user; } |