- Bugfix: using non numeric terms in taxonomy-page URLs would result in SQL errors.

4.5.x
Dries Buytaert 2004-09-19 08:41:50 +00:00
parent 34fc0b882d
commit 4e3a3aaed0
2 changed files with 68 additions and 66 deletions

View File

@ -855,6 +855,7 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
drupal_not_found(); drupal_not_found();
} }
if ($tids) {
// Build title: // Build title:
$result = db_query('SELECT name FROM {term_data} WHERE tid IN (%s)', implode(',', $tids)); $result = db_query('SELECT name FROM {term_data} WHERE tid IN (%s)', implode(',', $tids));
$names = array(); $names = array();
@ -890,10 +891,10 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
$result = taxonomy_select_nodes($tids, $operator, $depth, FALSE); $result = taxonomy_select_nodes($tids, $operator, $depth, FALSE);
node_feed($result, $channel); node_feed($result, $channel);
break; break;
default: default:
drupal_not_found(); drupal_not_found();
} }
}
} }
/** /**

View File

@ -855,6 +855,7 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
drupal_not_found(); drupal_not_found();
} }
if ($tids) {
// Build title: // Build title:
$result = db_query('SELECT name FROM {term_data} WHERE tid IN (%s)', implode(',', $tids)); $result = db_query('SELECT name FROM {term_data} WHERE tid IN (%s)', implode(',', $tids));
$names = array(); $names = array();
@ -890,10 +891,10 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
$result = taxonomy_select_nodes($tids, $operator, $depth, FALSE); $result = taxonomy_select_nodes($tids, $operator, $depth, FALSE);
node_feed($result, $channel); node_feed($result, $channel);
break; break;
default: default:
drupal_not_found(); drupal_not_found();
} }
}
} }
/** /**