Commit a6f970e9 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#173227 by Desbeers: make language listing work early in the bootstrap, when...

#173227 by Desbeers: make language listing work early in the bootstrap, when modules are not yet loaded (fix a regression from a previous patch)
parent a67fe5b0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment