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);
array('image' => $this->_view->resource->id,
'gallery' => $this->_view->gallery->id));
$html .= '<form name="tagform" action="' . $actionUrl . '" onsubmit="return !addTag();" method="post">';
- $html .= '<input id="addtag" name="addtag" type="text" size="15" /> <input onclick="return !addTag();" name="tagbutton" id="tagbutton" class="button" value="' . _("Add") . '" type="submit" />';
+ $html .= '<input id="addtag" name="addtag" type="text" size="15" /> <input name="tagbutton" id="tagbutton" class="button" value="' . _("Add") . '" type="submit" />';
$html .= '</form>';
}
$html .= $this->_htmlEnd();