- Bugfix: using non numeric terms in taxonomy-page URLs would result in SQL errors.
parent
34fc0b882d
commit
4e3a3aaed0
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue