- 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();
}
if ($tids) {
// Build title:
$result = db_query('SELECT name FROM {term_data} WHERE tid IN (%s)', implode(',', $tids));
$names = array();
@ -890,11 +891,11 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
$result = taxonomy_select_nodes($tids, $operator, $depth, FALSE);
node_feed($result, $channel);
break;
default:
drupal_not_found();
}
}
}
/**
* Menu callback; dispatches to the proper taxonomy administration function.

View File

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