Skip to content
Snippets Groups Projects
Commit 6ea92048 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#56093 by webchick. Fix forums.

parent ccffa833
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -594,10 +594,10 @@ function forum_overview() { ...@@ -594,10 +594,10 @@ function forum_overview() {
if ($tree) { if ($tree) {
foreach ($tree as $term) { foreach ($tree as $term) {
if (in_array($term->tid, variable_get('forum_containers', array()))) { if (in_array($term->tid, variable_get('forum_containers', array()))) {
$rows[] = array(_taxonomy_depth($term->depth) .' '. check_plain($term->name), l(t('edit container'), "admin/content/forum/edit/container/$term->tid")); $rows[] = array(str_repeat(' -- ', $term->depth) .' '. check_plain($term->name), l(t('edit container'), "admin/content/forum/edit/container/$term->tid"));
} }
else { else {
$rows[] = array(_taxonomy_depth($term->depth) .' '. check_plain($term->name), l(t('edit forum'), "admin/content/forum/edit/forum/$term->tid")); $rows[] = array(str_repeat(' -- ', $term->depth) .' '. check_plain($term->name), l(t('edit forum'), "admin/content/forum/edit/forum/$term->tid"));
} }
} }
...@@ -639,7 +639,7 @@ function _forum_parent_select($tid, $title, $child_type) { ...@@ -639,7 +639,7 @@ function _forum_parent_select($tid, $title, $child_type) {
if ($tree) { if ($tree) {
foreach ($tree as $term) { foreach ($tree as $term) {
if (!in_array($term->tid, $exclude)) { if (!in_array($term->tid, $exclude)) {
$options[$term->tid] = _taxonomy_depth($term->depth) . $term->name; $options[$term->tid] = str_repeat(' -- ', $term->depth) . $term->name;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment