diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-13 22:41:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-13 22:41:39 +0000 |
commit | 77936aef4c487e8b3265cb28e72d104004cb1172 (patch) | |
tree | d2dbc969ff08f968f248ccedb39dc846950e3480 /modules/taxonomy/taxonomy.pages.inc | |
parent | be36b9205e25595f5e4bf0dba4de33f5f620b33e (diff) | |
download | brdo-77936aef4c487e8b3265cb28e72d104004cb1172.tar.gz brdo-77936aef4c487e8b3265cb28e72d104004cb1172.tar.bz2 |
- Rollback of #225562 -- I think there is still something wrong.
Diffstat (limited to 'modules/taxonomy/taxonomy.pages.inc')
-rw-r--r-- | modules/taxonomy/taxonomy.pages.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.pages.inc b/modules/taxonomy/taxonomy.pages.inc index 84ea1d3ca..402fa2c77 100644 --- a/modules/taxonomy/taxonomy.pages.inc +++ b/modules/taxonomy/taxonomy.pages.inc @@ -16,7 +16,7 @@ function taxonomy_term_page($terms, $depth = 0, $op = 'page') { $str_tids = $terms['str_tids']; if ($terms['tids']) { - $result = db_query(db_rewrite_sql('SELECT t.tid, t.name FROM {taxonomy_term_data} t WHERE t.tid IN (' . db_placeholders($terms['tids']) . ')', 't', 'tid'), $terms['tids']); + $result = db_query(db_rewrite_sql('SELECT t.tid, t.name FROM {term_data} t WHERE t.tid IN (' . db_placeholders($terms['tids']) . ')', 't', 'tid'), $terms['tids']); $tids = array(); // we rebuild the $tids-array so it only contains terms the user has access to. $names = array(); while ($term = db_fetch_object($result)) { @@ -131,7 +131,7 @@ function taxonomy_autocomplete($vid, $string = '') { $last_string = trim(array_pop($array)); $matches = array(); if ($last_string != '') { - $result = db_query_range(db_rewrite_sql("SELECT t.tid, t.name FROM {taxonomy_term_data} t WHERE t.vid = :vid AND LOWER(t.name) LIKE LOWER(:last_string)", 't', 'tid'), array( + $result = db_query_range(db_rewrite_sql("SELECT t.tid, t.name FROM {term_data} t WHERE t.vid = :vid AND LOWER(t.name) LIKE LOWER(:last_string)", 't', 'tid'), array( ':vid' => $vid, ':last_string' => '%'. $last_string .'%', ), 0, 10); |