summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2007-09-07 10:33:06 (GMT)
committerGábor Hojtsy2007-09-07 10:33:06 (GMT)
commita6f970e9d29607ff3b1c8f647c0c0d5a9b15f4bc (patch)
treea20e519eda01dfd86a1ae15b5bd941ede5cb90d1
parenta67fe5b073ec769506213e753b65c04b1886fa29 (diff)
#173227 by Desbeers: make language listing work early in the bootstrap, when modules are not yet loaded (fix a regression from a previous patch)
-rw-r--r--includes/bootstrap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 023e9e9..dc9cbfc 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;