From a1828b232e59b078f19b8f4951a4aa6d3029f392 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 7 Mar 2010 07:30:40 +0000 Subject: #710860 by Dave Reid and plach: Remove static caching from drupal_multilingual() (breaks tests). --- includes/bootstrap.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 7fe10da96..ad0441d0c 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -2091,11 +2091,7 @@ function drupal_language_types() { * Return true if there is more than one language enabled. */ function drupal_multilingual() { - static $multilingual; - if (!isset($multilingual)) { - $multilingual = variable_get('language_count', 1) > 1; - } - return $multilingual; + return variable_get('language_count', 1) > 1; } /** -- cgit v1.2.3