summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 7c3d6dae4..2d9034abb 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -1057,15 +1057,14 @@ function language_list($field = 'language', $reset = FALSE) {
// Init language list
if (!isset($languages)) {
- if (variable_get('language_count', 1) > 1) {
+ if (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;
}
}
else {
- // One language only, the locale tables might not even
- // be in place, so use the default language only.
+ // No locale module, so use the default language only.
$default = language_default();
$languages['language'][$default->language] = $default;
}