--- taxonomy_image_link_alter.module 2009-03-13 17:28:21.000000000 +0000 +++ taxonomy_image_link_alterNew.module 2009-06-24 12:04:50.000000000 +0000 @@ -90,11 +90,11 @@ function taxonomy_image_link_alter(&$lin // Save the taxo link data into a temporary table. // We do this because PHP can't properly sort anything but English. $tquery = 'SELECT '. implode(', ', $fields) .', t.tid ' - ."FROM `term_data` t LEFT JOIN `vocabulary` v USING (vid) WHERE t.tid IN ('". + ."FROM {term_data} t LEFT JOIN {vocabulary} v USING (vid) WHERE t.tid IN ('". implode("', '", $tid_list) ."')"; $result = db_query_temporary($tquery, 'ti_link_alter'); // Now read them back in the proper order. - $result = db_query("SELECT * FROM {ti_link_alter} ORDER BY field0, field1, field2, field3"); + $result = db_query("SELECT * FROM ti_link_alter ORDER BY field0, field1, field2, field3"); $new_links = array(); while ($row = db_fetch_object($result)) { @@ -108,7 +108,7 @@ function taxonomy_image_link_alter(&$lin $links = array_merge($links, $new_links); // We need to destroy the table in case there are more nodes on the page. - db_query("DROP TABLE {ti_link_alter}"); + db_query("DROP TABLE ti_link_alter"); } function taxonomy_image_link_alter_form() {