diff --git a/mod/tagrm.php b/mod/tagrm.php index a6745e8e5..4bdaeb32f 100644 --- a/mod/tagrm.php +++ b/mod/tagrm.php @@ -37,6 +37,11 @@ function tagrm_post(App $a) // NOTREACHED } +/** + * Updates tags from an item + * @param $item_id + * @param $tags array + */ function update_tags($item_id, $tags){ if (empty($item_id) || empty($tags)){ $a->internalRedirect($_SESSION['photo_return']); diff --git a/src/Model/Term.php b/src/Model/Term.php index 6c89b5d00..75cc10070 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -291,8 +291,9 @@ class Term return $return; } - /* - * Deletes all Tags from an item + /** + * Delete all tags from an item + * @param int itemid - choose from which item the tags will be removed */ public static function deleteAllTags($itemid) { diff --git a/view/theme/frio/templates/photo_view.tpl b/view/theme/frio/templates/photo_view.tpl index cc72a10fa..939d9f0e9 100644 --- a/view/theme/frio/templates/photo_view.tpl +++ b/view/theme/frio/templates/photo_view.tpl @@ -52,12 +52,12 @@ {{* Tags and mentions *}} {{if $tags}}
{{$tags.title}} - {{foreach $tags.tags as $t}} - - {{$t.name}} - {{if $t.removeurl}} (x) {{/if}} - - {{/foreach}} + {{foreach $tags.tags as $t}} + + {{$t.name}} + {{if $t.removeurl}} (x) {{/if}} + + {{/foreach}}
{{/if}}