Issue #1741068 by steinmb: Fixed language_list() SQL contain backtick and breaks PostgreSQL.

8.0.x
catch 2012-08-21 17:27:53 +02:00
parent e900366cd5
commit 765890618f
1 changed files with 1 additions and 1 deletions

View File

@ -2719,7 +2719,7 @@ function language_list($flags = LANGUAGE_CONFIGURABLE) {
$default = language_default();
if (language_multilingual() || module_exists('language')) {
// Use language module configuration if available.
$languages = db_query('SELECT *, 0 as `default` FROM {language} ORDER BY weight ASC, name ASC')->fetchAllAssoc('langcode', PDO::FETCH_ASSOC);
$languages = db_query('SELECT * FROM {language} ORDER BY weight ASC, name ASC')->fetchAllAssoc('langcode', PDO::FETCH_ASSOC);
// Initialize default property so callers have an easy reference and can
// save the same object without data loss.