diff options
| author | lsces <lester@lsces.co.uk> | 2025-08-28 17:28:37 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-08-28 17:28:37 +0100 |
| commit | f381b6a362be5300c5d470202e74d8cd24db15e8 (patch) | |
| tree | e7b68f9265a0f4b2e99516f2076bc6f73a916b4c | |
| parent | 9a96d657f2bbba27b5c9094e6ef8b372e71c7d1c (diff) | |
| download | blogs-f381b6a362be5300c5d470202e74d8cd24db15e8.tar.gz blogs-f381b6a362be5300c5d470202e74d8cd24db15e8.tar.bz2 blogs-f381b6a362be5300c5d470202e74d8cd24db15e8.zip | |
Missed a default setting to shut up PHP8.4
| -rwxr-xr-x | templates/blog_list_post.tpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/blog_list_post.tpl b/templates/blog_list_post.tpl index c24e8b8..7b8f7be 100755 --- a/templates/blog_list_post.tpl +++ b/templates/blog_list_post.tpl @@ -2,7 +2,7 @@ {* This template is used by the blogs plugin to liberty. *} <div class="post" {if $gBitUser->getPreference( 'users_double_click' ) and (($aPost.ownsblog eq 'y') or ($gBitUser->mUserId and $aPost.user_id eq $gBitUser->mUserId) or $gBitUser->hasPermission( 'p_blogs_admin' ))} - ondblclick="location.href='{$smarty.const.BLOGS_PKG_URL}post.php?blog_id={$aPost.blog_id}{$blog_id}&post_id={$aPost.post_id}{$post_id}';" + ondblclick="location.href='{$smarty.const.BLOGS_PKG_URL}post.php?blog_id={$aPost.blog_id|default:0}{$blog_id}&post_id={$aPost.post_id}{$post_id}';" {/if} > {if $gBitUser->hasPermission( 'p_users_view_icons_and_tools' )} @@ -18,7 +18,7 @@ {/if} {if ($aPost.ownsblog eq 'y') or ($gBitUser->mUserId and $aPost.user_id eq $gBitUser->mUserId) or $gBitUser->hasPermission( 'p_blogs_admin' )} - <a title="{tr}Edit{/tr}" href="{$smarty.const.BLOGS_PKG_URL}post.php?blog_id={$aPost.blog_id}&post_id={$aPost.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={$aPost.blog_id|default:0}&post_id={$aPost.post_id}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a> <a title="{tr}Remove{/tr}" href="{$smarty.const.BLOGS_PKG_URL}post.php?action=remove&post_id={$aPost.post_id}">{booticon iname="icon-trash" ipackage="icons" iexplain="delete"}</a> {/if} </div> @@ -78,7 +78,7 @@ </div><!-- end .content --> {if $aPost.pages > 1} - <a href="{$smarty.const.BLOGS_PKG_URL}view_post.php?blog_id={$aPost.blog_id}&post_id={$aPost.post_id}">{tr}read more{/tr} ({$aPost.pages} {tr}pages{/tr})</a> + <a href="{$smarty.const.BLOGS_PKG_URL}view_post.php?blog_id={$aPost.blog_id|default:0}&post_id={$aPost.post_id}">{tr}read more{/tr} ({$aPost.pages} {tr}pages{/tr})</a> {/if} </div> <!-- end .body --> @@ -90,7 +90,7 @@ {if $spacer} • {/if} {assign var=spacer value=true} {if $ajax_more} - <a href="javascript:void(0);" onclick="BitAjax.updater( 'post_more_{$aPost.post_id}', '{$smarty.const.BLOGS_PKG_URL}view_post.php', 'blog_id={$aPost.blog_id}&post_id={$aPost.post_id}&format={if $aPost.summary}data{else}more{/if}&output=ajax' )">{tr}Read More{/tr}</a> + <a href="javascript:void(0);" onclick="BitAjax.updater( 'post_more_{$aPost.post_id}', '{$smarty.const.BLOGS_PKG_URL}view_post.php', 'blog_id={$aPost.blog_id|default:0}&post_id={$aPost.post_id}&format={if $aPost.summary}data{else}more{/if}&output=ajax' )">{tr}Read More{/tr}</a> {else} <a class="more" href="{$aPost.display_url}">{tr}Read More…{/tr}</a> {/if} |
