summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-12-25 15:04:22 -0500
committerDavid Rothstein <drothstein@gmail.com>2013-12-25 15:04:22 -0500
commit335b2dada64cfc16aea50fd360cbe61ad26d9d12 (patch)
tree6fef6837677d72c25ee969cc9816a3111e391484 /includes
parentcbabb1a24bf40e74363efbf0401ba8d37b8c9799 (diff)
downloadbrdo-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.inc2
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();