summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index b73bec68c..99dd61085 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -2292,6 +2292,9 @@ function drupal_language_types() {
* Return true if there is more than one language enabled.
*/
function drupal_multilingual() {
+ // The "language_count" variable stores the number of enabled languages to
+ // avoid unnecessarily querying the database when building the list of
+ // enabled languages on monolingual sites.
return variable_get('language_count', 1) > 1;
}