From cd5dccca6f83d3a657332efff88487d55ee1b2ea Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Sat, 16 May 2026 19:56:15 +0100 Subject: Missing defaults, and remap popup edit --- templates/image_order.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/image_order.tpl b/templates/image_order.tpl index 2cdd884..c8793b6 100755 --- a/templates/image_order.tpl +++ b/templates/image_order.tpl @@ -24,7 +24,7 @@ {counter name=imageCount start=0 assign=imageCount} {counter name=pageCount start=1 assign=pageCount} {foreach from=$gContent->mItems item=galItem key=itemContentId} - {assign var=thisMantissa value=$galItem->getField('item_position')|floor} + {assign var=thisMantissa value=$galItem->getField('item_position')|default:0|floor} {if ($gContent->getPreference('gallery_pagination')==$smarty.const.FISHEYE_PAGINATION_POSITION_NUMBER && $lastMantissa != $thisMantissa) || ($gContent->mInfo.images_per_page && $imageCount % $gContent->mInfo.images_per_page == 0)} @@ -48,7 +48,7 @@ {tr}Uploaded{/tr}: {$galItem->mInfo.created|bit_short_datetime}
{tr}File name{/tr}: {$galItem->mInfo.filename|default:''}
{if $galItem->mInfo.user_id == $gBitUser->mUserId || $gBitUser->isAdmin()} - {tr}Edit Image{/tr}: {booticon iname="fa-pen-to-square" iexplain="Edit Details"} + {tr}Edit Image{/tr}: {booticon iname="fa-pen-to-square" iexplain="Edit Details"} {* jspopup href="`$smarty.const.FISHEYE_PKG_URL`edit_image.php?content_id=$galItem->mInfo.content_id" title="edit image" *} {booticon iname="fa-pen-to-square" iexplain="Edit Image"} @@ -65,7 +65,7 @@ : - {assign var=lastMantissa value=$galItem->getField('item_position')|floor} + {assign var=lastMantissa value=$galItem->getField('item_position')|default:0|floor} {/foreach} -- cgit v1.3