From c2168196c7b8d62c242327ab6e3691eec3537e8a Mon Sep 17 00:00:00 2001 From: Jimako Date: Tue, 26 Aug 2014 21:39:16 +0200 Subject: [PATCH] using separator that you can set in admin area --- e107_plugins/tagwords/tagwords_class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_plugins/tagwords/tagwords_class.php b/e107_plugins/tagwords/tagwords_class.php index c58a1ec36..15c94773e 100644 --- a/e107_plugins/tagwords/tagwords_class.php +++ b/e107_plugins/tagwords/tagwords_class.php @@ -199,7 +199,7 @@ class tagwords return implode($this->pref['tagwords_word_seperator'], $arr); } //return a \n seperated list of tagwords for the specific item - return implode("\n", $ret); + return implode($this->pref['tagwords_word_seperator'], $ret); } return; } @@ -295,10 +295,10 @@ class tagwords //get existing word records $existing_array = $this->getRecords($tag_type, $tag_itemid, false); - $existing = explode("\n", $existing_array); + $existing = explode($this->pref['tagwords_word_seperator'], $existing_array); //create array of new posted words - $new = explode("\n", $tag_word); + $new = explode($this->pref['tagwords_word_seperator'], $tag_word); //delete the differences (delete what has been removed) $delete_diff = array_diff($existing, $new); @@ -892,4 +892,4 @@ class tagwords } //end class -?> \ No newline at end of file +?>