From 272eb5eb820a03aff7bcb4e461e69c93d6dffab0 Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Tue, 23 Oct 2018 13:32:32 +0200 Subject: [PATCH] fix doxygen header + indent --- mod/tagrm.php | 5 +++++ src/Model/Term.php | 5 +++-- view/theme/frio/templates/photo_view.tpl | 12 ++++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/mod/tagrm.php b/mod/tagrm.php index a6745e8e56..4bdaeb32f1 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 6c89b5d00f..75cc100703 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 cc72a10fa2..939d9f0e98 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}} -- 2.39.5