1
1
Fork 0

fix doxygen header + indent

This commit is contained in:
Jonny Tischbein 2018-10-23 13:32:32 +02:00
parent 1689c44085
commit 272eb5eb82
3 changed files with 14 additions and 8 deletions

View file

@ -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']);

View file

@ -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)
{

View file

@ -52,12 +52,12 @@
{{* Tags and mentions *}}
{{if $tags}}
<div id="photo-tags">{{$tags.title}}
{{foreach $tags.tags as $t}}
<span class="category label btn-success sm">
<span class="p-category">{{$t.name}}</span>
{{if $t.removeurl}} (<a href="{{$t.removeurl}}">x</a>) {{/if}}
</span>
{{/foreach}}
{{foreach $tags.tags as $t}}
<span class="category label btn-success sm">
<span class="p-category">{{$t.name}}</span>
{{if $t.removeurl}} (<a href="{{$t.removeurl}}">x</a>) {{/if}}
</span>
{{/foreach}}
</div>
{{/if}}