From b9db691d8eb5bec47fbc27220ea04a9a3e613d60 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 26 May 2010 16:12:25 -0400 Subject: [PATCH] some ansel tagging fixes --- ansel/lib/Ajax/Imple/TagActions.php | 2 +- ansel/lib/Widget/Tags.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansel/lib/Ajax/Imple/TagActions.php b/ansel/lib/Ajax/Imple/TagActions.php index a7bcd3e5c..b914ee021 100644 --- a/ansel/lib/Ajax/Imple/TagActions.php +++ b/ansel/lib/Ajax/Imple/TagActions.php @@ -64,8 +64,8 @@ class Ansel_Ajax_Imple_TagActions extends Horde_Ajax_Imple_Base switch ($action) { case 'add': if (!empty($tags)) { + $tags = rawurldecode($post['tags']); $tags = explode(',', $tags); - $tags = array_map('rawurldecode', $tags); /* Get current tags so we don't overwrite them */ $etags = Ansel_Tags::readTags($id, $type); diff --git a/ansel/lib/Widget/Tags.php b/ansel/lib/Widget/Tags.php index 65a163564..dead76731 100644 --- a/ansel/lib/Widget/Tags.php +++ b/ansel/lib/Widget/Tags.php @@ -47,7 +47,7 @@ class Ansel_Widget_Tags extends Ansel_Widget_Base array('image' => $this->_view->resource->id, 'gallery' => $this->_view->gallery->id)); $html .= '
'; - $html .= ' '; + $html .= ' '; $html .= '
'; } $html .= $this->_htmlEnd(); -- 2.11.0