summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-07 07:30:40 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-07 07:30:40 +0000
commita1828b232e59b078f19b8f4951a4aa6d3029f392 (patch)
treef006585b443eeb190485d2e3e40786c853b514b1
parent58f1f75e07553a8eebd13d72cfd7d342a080e60f (diff)
downloadbrdo-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.inc6
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;
}
/**