From 400284fb2cb1bc261120874fd000868ef50e5aaf Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 1 May 2011 06:31:39 -0400 Subject: =?UTF-8?q?-=20Patch=20#1099396=20by=20D=C3=A9sir=C3=A9,=20droplet?= =?UTF-8?q?,=20plach:=20language=5Fcount()=20is=20never=20decremented=20wh?= =?UTF-8?q?en=20removing=20a=20language.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/bootstrap.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'includes') 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; } -- cgit v1.2.3