From 335b2dada64cfc16aea50fd360cbe61ad26d9d12 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Wed, 25 Dec 2013 15:04:22 -0500 Subject: 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. --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') 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(); -- cgit v1.2.3