From 1f70473a1eb05aa9c6188e3605325a5b7f24a933 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Wed, 2 Apr 2003 20:39:44 +0000 Subject: [PATCH] - Fixed bug in taxonomy module. Patch by Gerhard. --- modules/taxonomy.module | 5 +++-- modules/taxonomy/taxonomy.module | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 739bfda75de6..10c1f3317a43 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -747,7 +747,7 @@ function taxonomy_admin() { $output .= status(taxonomy_save_vocabulary($edit)); } else { - return status(taxonomy_save_term($edit)); + $output .= status(taxonomy_save_term($edit)); if (!$edit["tid"]) { // if INSERT show form again $output .= taxonomy_form_term(); @@ -763,6 +763,7 @@ function taxonomy_admin() { else { $output .= message_access(); } + return $output; } @@ -825,4 +826,4 @@ function taxonomy_help() { <p>Every term, or collection of terms, provides an <a href="http://backend.userland.com/stories/rss091">RSS</a> feed to which interested users may subscribe. The URL format for an sample RSS feed is <a href="<?php print url("node/feed/or/1,2"); ?>"><?php print url("node/feed/or/1,2"); ?></a>.</p> <?php } -?> \ No newline at end of file +?> diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 739bfda75de6..10c1f3317a43 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -747,7 +747,7 @@ function taxonomy_admin() { $output .= status(taxonomy_save_vocabulary($edit)); } else { - return status(taxonomy_save_term($edit)); + $output .= status(taxonomy_save_term($edit)); if (!$edit["tid"]) { // if INSERT show form again $output .= taxonomy_form_term(); @@ -763,6 +763,7 @@ function taxonomy_admin() { else { $output .= message_access(); } + return $output; } @@ -825,4 +826,4 @@ function taxonomy_help() { <p>Every term, or collection of terms, provides an <a href="http://backend.userland.com/stories/rss091">RSS</a> feed to which interested users may subscribe. The URL format for an sample RSS feed is <a href="<?php print url("node/feed/or/1,2"); ?>"><?php print url("node/feed/or/1,2"); ?></a>.</p> <?php } -?> \ No newline at end of file +?> -- GitLab