diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-07 10:33:06 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-07 10:33:06 +0000 |
commit | a6f970e9d29607ff3b1c8f647c0c0d5a9b15f4bc (patch) | |
tree | a20e519eda01dfd86a1ae15b5bd941ede5cb90d1 /includes | |
parent | a67fe5b073ec769506213e753b65c04b1886fa29 (diff) | |
download | brdo-a6f970e9d29607ff3b1c8f647c0c0d5a9b15f4bc.tar.gz brdo-a6f970e9d29607ff3b1c8f647c0c0d5a9b15f4bc.tar.bz2 |
#173227 by Desbeers: make language listing work early in the bootstrap, when modules are not yet loaded (fix a regression from a previous patch)
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |