[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Prevent Smarty crash on empty file galleries in page view

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a27bf94ccd33_381642750330d8@gitlab-sidekiq-low-urgency-cpu-bound-v2-d4ddd5fd7-crccw.mail>

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
b7365d7a by Aksanti Bahiga at 2026-06-09T07:05:26+00:00
[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

- - - - -


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/b7365d7a1a37f761dbe99b9bd94955aa6649419d

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b7365d7a1a37f761dbe99b9bd94955aa6649419d
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.