summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-05-01 06:31:39 -0400
committerDries Buytaert <dries@buytaert.net>2011-05-01 06:31:39 -0400
commit400284fb2cb1bc261120874fd000868ef50e5aaf (patch)
tree3343a6f6aad37d810b8d1f76a03f9b9a97fdb80b /includes
parent3f154706a3da1084b304cfc0b36fa375471e2f19 (diff)
downloadbrdo-400284fb2cb1bc261120874fd000868ef50e5aaf.tar.gz
brdo-400284fb2cb1bc261120874fd000868ef50e5aaf.tar.bz2
- Patch #1099396 by Désiré, droplet, plach: language_count() is never decremented when removing a language.
Diffstat (limited to 'includes')
-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;
}