diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 07:30:40 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 07:30:40 +0000 |
commit | a1828b232e59b078f19b8f4951a4aa6d3029f392 (patch) | |
tree | f006585b443eeb190485d2e3e40786c853b514b1 | |
parent | 58f1f75e07553a8eebd13d72cfd7d342a080e60f (diff) | |
download | brdo-a1828b232e59b078f19b8f4951a4aa6d3029f392.tar.gz brdo-a1828b232e59b078f19b8f4951a4aa6d3029f392.tar.bz2 |
#710860 by Dave Reid and plach: Remove static caching from drupal_multilingual() (breaks tests).
-rw-r--r-- | includes/bootstrap.inc | 6 |
1 files changed, 1 insertions, 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; } /** |