[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [BP][FIX] Prevent Smarty crash on empty file galleries in page view
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]> Wed, 08 Jul 2026 22:25:30 +0000
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a4ece5a72fe_38143635856778@gitlab-sidekiq-low-urgency-cpu-bound-v2-5bcd6ccdbf-j89wm.mail> |
ushindi bienvenu pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki
Commits:
8f28bfe2 by Aksanti Bahiga at 2026-07-08T22:11:49+00:00
[BP][FIX] Prevent Smarty crash on empty file galleries in page view
---
* [FIX] Prevent Smarty crash on empty file galleries in page view
---
* Apply code review feedback on capture block definitions
* [FIX] Prevent Smarty crash on empty file galleries in page view
See merge request tikiwiki/tiki!10463
See merge request tikiwiki/tiki!10664
- - - - -
1 changed file:
- templates/fgal_view_page.tpl
Changes:
=====================================
templates/fgal_view_page.tpl
=====================================
@@ -1,12 +1,15 @@
{* build link *}
{capture assign=link}
+{if !empty($file)}
{include 'fgal_file_link_attributes.tpl' disableTplLogging=true}
+{/if}
{/capture}
{math equation="x + 6" x=$thumbnail_size assign=thumbnailcontener_size}
{* thumbnail actions wrench *}
{capture name="thumbactions"}
+{if !empty($file)}
{if ($prefs.fgal_show_thumbactions eq 'y' or $show_details eq 'y')}
<div class="thumbactions mt-3">
{if !isset($gal_info.show_action) or $gal_info.show_action neq 'n'}
@@ -20,6 +23,7 @@
{/if}
</div> {* thumbactions *}
{/if}
+{/if}
{/capture}
<div class="d-flex flex-wrap align-items-start">
<div class="flex-shrink-0">
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8f28bfe2ab277191115b3fe50ab9e3f8dd34dd56
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8f28bfe2ab277191115b3fe50ab9e3f8dd34dd56
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs