- 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();
|
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();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue