diff options
author | David Rothstein <drothstein@gmail.com> | 2013-12-25 15:04:22 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-12-25 15:04:22 -0500 |
commit | 335b2dada64cfc16aea50fd360cbe61ad26d9d12 (patch) | |
tree | 6fef6837677d72c25ee969cc9816a3111e391484 /includes | |
parent | cbabb1a24bf40e74363efbf0401ba8d37b8c9799 (diff) | |
download | brdo-335b2dada64cfc16aea50fd360cbe61ad26d9d12.tar.gz brdo-335b2dada64cfc16aea50fd360cbe61ad26d9d12.tar.bz2 |
Issue #1399798 by nevergone, amateescu, chriscohen: Add a variable to allow the anonymous user object to not be a stdClass and to work around the fact that anonymous user properties are hardcoded.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 1c8b5c72d..7a4493991 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -2149,7 +2149,7 @@ function drupal_array_merge_deep_array($arrays) { * @return Object - the user object. */ function drupal_anonymous_user() { - $user = new stdClass(); + $user = variable_get('drupal_anonymous_user_object', new stdClass); $user->uid = 0; $user->hostname = ip_address(); $user->roles = array(); |