diff options
| author | lsces <lester@lsces.co.uk> | 2025-08-28 16:18:07 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-08-28 16:18:07 +0100 |
| commit | d4cf8eb6b69ff23eedcba9359ce9a1ed4e2a7d9c (patch) | |
| tree | 9825e26ffc0754aafc2bb9c41a0e6c44fd1e2c6e /templates/html_head_inc.tpl | |
| parent | d77b5a9732361455895cbd76894a26765bff0c97 (diff) | |
| download | fisheye-d4cf8eb6b69ff23eedcba9359ce9a1ed4e2a7d9c.tar.gz fisheye-d4cf8eb6b69ff23eedcba9359ce9a1ed4e2a7d9c.tar.bz2 fisheye-d4cf8eb6b69ff23eedcba9359ce9a1ed4e2a7d9c.zip | |
Templates code updated to PHP8.4 and namespace ... work in progress on updating some third party code
Diffstat (limited to 'templates/html_head_inc.tpl')
| -rwxr-xr-x[-rw-r--r--] | templates/html_head_inc.tpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/html_head_inc.tpl b/templates/html_head_inc.tpl index f6fe781..9bebf49 100644..100755 --- a/templates/html_head_inc.tpl +++ b/templates/html_head_inc.tpl @@ -1,15 +1,15 @@ {* $Header$ *} {strip} -{if $gContent} - {if $gGallery->mInfo.previous_image_id} +{if !empty($gGallery) and $gContent} + {if !empty($gGallery->mInfo.previous_image_id)} <link rel="prev" title="{tr}Previous{/tr}" href="{$gContent->getImageUrl($gGallery->mInfo.previous_image_id)|escape}" /> {/if} - {if $gGallery->mInfo.next_image_id} + {if !empty($gGallery->mInfo.next_image_id)} <link rel="next" title="{tr}Next{/tr}" href="{$gContent->getImageUrl($gGallery->mInfo.next_image_id)|escape}" /> {/if} {/if} {if $gBitSystem->isPackageActive( 'rss' ) and $gBitSystem->isFeatureActive( 'fisheye_rss' ) and $gBitSystem->getActivePackage() eq 'fisheye' and $gBitUser->hasPermission( 'p_fisheye_view' )} - {if $gGallery} + {if !empty($gGallery)} {assign var=fisheye_rss_gal_id value=$gGallery->mGalleryId} {elseif $gContent} {assign var=fisheye_rss_gal_id value=$gContent->mGalleryId} |
