summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-08-29 08:29:14 +0100
committerlsces <lester@lsces.co.uk>2025-08-29 08:29:14 +0100
commit3669267901ecdda55aa69f883a7fdea448ef8731 (patch)
tree12222a1bef59f95d87cdcc2b3eb1288608f5e878 /templates
parentf381b6a362be5300c5d470202e74d8cd24db15e8 (diff)
downloadblogs-3669267901ecdda55aa69f883a7fdea448ef8731.tar.gz
blogs-3669267901ecdda55aa69f883a7fdea448ef8731.tar.bz2
blogs-3669267901ecdda55aa69f883a7fdea448ef8731.zip
Can now see the little niggles and pick them off. Not sure why Print was hidden and PHP8.4 needs everything defined which adding missing defaults helps with. Probably need to sort that at the 'template' level but that will come.
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/view_blog_post.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/view_blog_post.tpl b/templates/view_blog_post.tpl
index 0390fa0..fb28446 100755
--- a/templates/view_blog_post.tpl
+++ b/templates/view_blog_post.tpl
@@ -31,13 +31,13 @@
<a title="{tr}Crosspost{/tr}" href="{$smarty.const.BLOGS_PKG_URL}crosspost.php?post_id={$post_info.post_id}">{booticon iname="icon-paperclip" ipackage="icons" iexplain="Crosspost"}</a>
{/if}
- <a title="{tr}Print{/tr}" style="display:none;" href="{$smarty.const.BLOGS_PKG_URL}print_blog_post.php?post_id={$post_info.post_id}">{booticon iname="icon-print" ipackage="icons" iexplain="Print"}</a>
+ <a title="{tr}Print{/tr}" href="{$smarty.const.BLOGS_PKG_URL}print_blog_post.php?post_id={$post_info.post_id}">{booticon iname="icon-print" ipackage="icons" iexplain="Print"}</a>
{if $gBitUser->hasPermission('p_blogs_send_post')}
<a title="{tr}Email This Post{/tr}" href="{$smarty.const.BLOGS_PKG_URL}send_post.php?post_id={$post_info.post_id}">{booticon iname="icon-envelope" ipackage="icons" iexplain="Email This Post"}</a>
{/if}
{if $gContent->hasUpdatePermission()}
- <a title="{tr}Edit{/tr}" href="{$smarty.const.BLOGS_PKG_URL}post.php?blog_id={$post_info.blog_id}&amp;post_id={$post_info.post_id}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a>
+ <a title="{tr}Edit{/tr}" href="{$smarty.const.BLOGS_PKG_URL}post.php?blog_id={$post_info.blog_id|default:0}&amp;post_id={$post_info.post_id}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a>
{/if}
{if $gContent->hasUserPermission( 'p_blogs_admin' )}
<a title="{tr}Remove{/tr}" href="{$smarty.const.BLOGS_PKG_URL}post.php?action=remove&amp;post_id={$post_info.post_id}&amp;status_id=300">{booticon iname="icon-trash" ipackage="icons" iexplain="delete"}</a>