]> git.mxchange.org Git - friendica.git/commitdiff
fix doxygen header + indent
authorJonny Tischbein <jonny_tischbein@systemli.org>
Tue, 23 Oct 2018 11:32:32 +0000 (13:32 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Thu, 25 Oct 2018 19:47:10 +0000 (21:47 +0200)
mod/tagrm.php
src/Model/Term.php
view/theme/frio/templates/photo_view.tpl

index a6745e8e560fed164f2714b75714cce240a54201..4bdaeb32f12b6e7272218e13110b2e15f9f9a434 100644 (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']);
index 6c89b5d00fe17d88a5e112a0ee16565d0579eded..75cc100703c628f51a2c689b06ba97567a84b356 100644 (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)
        {
index cc72a10fa2d8b71b4959a73961dd2896f2967c9f..939d9f0e98ad82ccf46df137c1f1813af5f94932 100644 (file)
                {{* 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}}