From a6f970e9d29607ff3b1c8f647c0c0d5a9b15f4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 7 Sep 2007 10:33:06 +0000 Subject: #173227 by Desbeers: make language listing work early in the bootstrap, when modules are not yet loaded (fix a regression from a previous patch) --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 023e9e97a..dc9cbfc0b 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1057,7 +1057,7 @@ function language_list($field = 'language', $reset = FALSE) { // Init language list if (!isset($languages)) { - if (module_exists('locale')) { + if (variable_get('language_count', 1) > 1 || module_exists('locale')) { $result = db_query('SELECT * FROM {languages} ORDER BY weight ASC, name ASC'); while ($row = db_fetch_object($result)) { $languages['language'][$row->language] = $row; -- cgit v1.2.3