diff --git a/include/identity.php b/include/identity.php index 5ca626c72..b0d62fba7 100644 --- a/include/identity.php +++ b/include/identity.php @@ -630,7 +630,6 @@ function identity_export_year($channel_id,$year) { } - /** * @brief Loads a profile into the App structure. * diff --git a/include/items.php b/include/items.php index b1a0dacdf..d24dbed9f 100755 --- a/include/items.php +++ b/include/items.php @@ -2685,11 +2685,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') ", @@ -2701,7 +2702,6 @@ function item_store_update($arr,$allow_exec = false) { dbesc($t['url']) ); } - $arr['term'] = $terms; } diff --git a/include/widgets.php b/include/widgets.php index 6c1df3022..36671e719 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -380,6 +380,7 @@ function widget_categories($arr) { $srchurl = str_replace(array('?f=','&f='),array('',''),$srchurl); return categories_widget($srchurl, $cat); + } function widget_tagcloud_wall($arr) { diff --git a/index.php b/index.php index 66ea844d0..3758b38b0 100755 --- a/index.php +++ b/index.php @@ -195,6 +195,17 @@ if(strlen($a->module)) { } } + /** + * This provides a place for plugins to register module handlers which don't otherwise exist on the system. + * If the plugin sets 'installed' to true we won't throw a 404 error for the specified module even if + * there is no specific module file or matching plugin name. + * The plugin should catch at least one of the module hooks for this URL. + */ + + $x = array('module' => $a->module, 'installed' => false); + call_hooks('module_loaded', $x); + if($x['installed']) + $a->module_loaded = true; /** * The URL provided does not resolve to a valid module. diff --git a/version.inc b/version.inc index a8c5cc468..249734f42 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2015-07-15.1094 +2015-07-19.1098 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}}