Commit 85cbb1be authored by Dries's avatar Dries

- Modified patch #22878 by Junyor: made all terms on the taxonomy overview...

- Modified patch #22878 by Junyor: made all terms on the taxonomy overview page links to the taxonomy term list page.
parent b86a5d49
...@@ -375,7 +375,7 @@ function taxonomy_overview() { ...@@ -375,7 +375,7 @@ function taxonomy_overview() {
$tree = taxonomy_get_tree($vocabulary->vid); $tree = taxonomy_get_tree($vocabulary->vid);
if ($tree) { if ($tree) {
foreach ($tree as $term) { foreach ($tree as $term) {
$rows[] = array(array('data' => _taxonomy_depth($term->depth) . ' ' . check_plain($term->name), 'class' => 'term'), NULL, NULL, NULL, l(t('edit term'), "admin/taxonomy/edit/term/$term->tid")); $rows[] = array(array('data' => _taxonomy_depth($term->depth) . ' ' . l($term->name, "taxonomy/term/$term->tid"), 'class' => 'term'), NULL, NULL, NULL, l(t('edit term'), "admin/taxonomy/edit/term/$term->tid"));
} }
} }
else { else {
......
...@@ -375,7 +375,7 @@ function taxonomy_overview() { ...@@ -375,7 +375,7 @@ function taxonomy_overview() {
$tree = taxonomy_get_tree($vocabulary->vid); $tree = taxonomy_get_tree($vocabulary->vid);
if ($tree) { if ($tree) {
foreach ($tree as $term) { foreach ($tree as $term) {
$rows[] = array(array('data' => _taxonomy_depth($term->depth) . ' ' . check_plain($term->name), 'class' => 'term'), NULL, NULL, NULL, l(t('edit term'), "admin/taxonomy/edit/term/$term->tid")); $rows[] = array(array('data' => _taxonomy_depth($term->depth) . ' ' . l($term->name, "taxonomy/term/$term->tid"), 'class' => 'term'), NULL, NULL, NULL, l(t('edit term'), "admin/taxonomy/edit/term/$term->tid"));
} }
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment