diff --git a/include/items.php b/include/items.php index 73ed64116..054008d58 100755 --- a/include/items.php +++ b/include/items.php @@ -2657,11 +2657,12 @@ function item_store_update($arr,$allow_exec = false) { return $ret; } + $r = q("delete from term where oid = %d and otype = %d", + intval($orig_post_id), + intval(TERM_OBJ_POST) + ); + if(is_array($terms)) { - $r = q("delete from term where oid = %d and otype = %d", - intval($orig_post_id), - intval(TERM_OBJ_POST) - ); foreach($terms as $t) { q("insert into term (uid,oid,otype,type,term,url) values(%d,%d,%d,%d,'%s','%s') ", @@ -2673,7 +2674,6 @@ function item_store_update($arr,$allow_exec = false) { dbesc($t['url']) ); } - $arr['term'] = $terms; } diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl index 63d5ad778..f5ff23700 100755 --- a/view/tpl/photo_view.tpl +++ b/view/tpl/photo_view.tpl @@ -2,7 +2,6 @@
- {{if $tools}} {{/if}} @@ -11,7 +10,6 @@
{{/if}} -
-

{{if $desc}}{{$desc}}{{elseif $filename}}{{$filename}}{{else}}{{$unknown}}{{/if}}

-
-
{{$map}} @@ -88,12 +83,9 @@
-
-
- {{if $tags}}
{{$tag_hdr}} @@ -102,31 +94,29 @@ {{/foreach}}
{{/if}} -
- - {{if $responses.count }} -
-
- {{foreach $responses as $verb=>$response}} - {{if $response.count}} -
- - {{if $response.list_part}} - - {{else}} - - {{/if}} - {{if $response.list_part}} + {{if $responses.count }} +
+
+ {{foreach $responses as $verb=>$response}} + {{if $response.count}} +
+ + {{if $response.list_part}} + + {{else}} + + {{/if}} + {{if $response.list_part}} {{/if}} + {{/foreach}}
- {{/if}} - {{/foreach}} +
+ {{/if}} + {{if $likebuttons}} +
+ + +
+
+ {{/if}} +
- {{/if}} -
- {{if $likebuttons}} -
- - -
-
- {{/if}} -
- {{$comments}} - {{if $commentbox}}
{{$commentbox}}
{{/if}} -
- {{$paginate}}