diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-09 12:37:30 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-09 12:37:30 +0000 |
commit | d451458d28d80881ec93672e570578e12e832142 (patch) | |
tree | 1eb2da35efe76711c98187f06630f07037dce3d5 /modules | |
parent | 336dd18700f860e49d0be29fe6043e9c25c69043 (diff) | |
download | brdo-d451458d28d80881ec93672e570578e12e832142.tar.gz brdo-d451458d28d80881ec93672e570578e12e832142.tar.bz2 |
#190670 by myself: alias node table for query rewrites
Diffstat (limited to 'modules')
-rw-r--r-- | modules/translation/translation.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module index 17af41516..08591dd5a 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -267,7 +267,7 @@ function translation_node_get_translations($tnid) { if (is_numeric($tnid) && $tnid) { if (!isset($translations[$tnid])) { $translations[$tnid] = array(); - $result = db_query(db_rewrite_sql('SELECT nid, title, language FROM {node} WHERE tnid = %d'), $tnid); + $result = db_query(db_rewrite_sql('SELECT n.nid, n.title, n.language FROM {node} n WHERE n.tnid = %d'), $tnid); while ($node = db_fetch_object($result)) { $translations[$tnid][$node->language] = $node; } |