[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Fgal : Remove stray number in list/admin view header

"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68947783a4883_2cd5b9c8654f@gitlab-sidekiq-low-urgency-cpu-bound-v2-fcfcfbbb-wvhpd.mail>

Baraka Kinywa pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
a4874103 by MAGENE Sem Joel at 2025-08-07T12:45:34+03:00
[FIX] Fgal : Remove stray number in list/admin view header
---
* [FIX] Fgal : Remove stray number in list/admin view header

See merge request tikiwiki/tiki!8203

- - - - -


1 changed file:

- templates/list_file_gallery_content.tpl


Changes:

=====================================
templates/list_file_gallery_content.tpl
=====================================
@@ -6,9 +6,9 @@
         <tr>
             {if !empty($files) and $gal_info.show_checked ne 'n' and ($tiki_p_admin_file_galleries eq 'y' or $tiki_p_upload_files eq 'y')}
                 {if isset($nbCols)}
-                    {$nbCols=$nbCols+1}
+                    {assign var="nbCols" value=$nbCols+1}
                 {else}
-                    {$nbCols=1}
+                    {assign var="nbCols" value=1}
                 {/if}
                 <td class="checkbox-cell"> {* th changed to td to avoid ARIA empty header error  *}
                     {select_all checkbox_names='file[],subgal[]'}
@@ -18,9 +18,9 @@
             {if ( $prefs.use_context_menu_icon eq 'y' or $prefs.use_context_menu_text eq 'y' )
                 and (!isset($gal_info.show_action) or $gal_info.show_action eq 'y')}
                 {if isset($nbCols)}
-                    {$nbCols++}
+                    {assign var="nbCols" value=$nbCols+1}
                 {else}
-                    {$nbCols = 1}
+                    {assign var="nbCols" value=1}
                 {/if}
                 <td style="width: 1em">&nbsp; {* th changed to td to avoid ARIA empty header error  *}
 
@@ -77,9 +77,9 @@
 
                     {if $propname eq 'name' and ( $gal_info.show_name eq 'a' or $gal_info.show_name eq 'f' )}
                         {if isset($nbCols)}
-                            {$nbCols=$nbCols+1}
+                            {assign var="nbCols" value=$nbCols+1}
                         {else}
-                            {$nbCols=1}
+                            {assign var="nbCols" value=1}
                         {/if}
                         <th{$td_args}>
                             {self_link _sort_arg=$sort_arg _sort_field='filename'}
@@ -92,9 +92,9 @@
                         or ( $gal_info.show_name eq 'a' or $gal_info.show_name eq 'n' )) and ($propname neq 'description'
                         or $gal_info.show_name neq 'n')}
                         {if isset($nbCols)}
-                            {$nbCols=$nbCols+1}
+                            {assign var="nbCols" value=$nbCols+1}
                         {else}
-                            {$nbCols=1}
+                            {assign var="nbCols" value=1}
                         {/if}
                         <th{$td_args}>
                             {self_link _sort_arg=$sort_arg _sort_field=$propname _title=":$link_title" _class='tips'}
@@ -123,9 +123,9 @@
 
             {if !empty($other_columns_selected)}
                 {if isset($nbCols)}
-                    {$nbCols=$nbCols+1}
+                    {assign var="nbCols" value=$nbCols+1}
                 {else}
-                    {$nbCols=1}
+                    {assign var="nbCols" value=1}
                 {/if}
                 <th>
                     {self_link _sort_arg=$sort_arg _sort_field=$other_columns_selected _title=$fgal_listing_conf.$other_columns_selected.name}
@@ -137,9 +137,9 @@
             {if ( $prefs.use_context_menu_icon neq 'y' and $prefs.use_context_menu_text neq 'y' )
                 or (isset($gal_info.show_action) && $gal_info.show_action eq 'y')}
                 {if isset($nbCols)}
-                    {$nbCols=$nbCols+1}
+                    {assign var="nbCols" value=$nbCols+1}
                 {else}
-                    {$nbCols=1}
+                    {assign var="nbCols" value=$nbCols+1}
                 {/if}
                 <th>
                     {tr}Actions{/tr}
@@ -148,9 +148,9 @@
             
             {if ( $prefs.feature_categories eq 'y')}
                 {if isset($nbCols)}
-                    {$nbCols=$nbCols+1}
+                    {assign var="nbCols" value=$nbCols+1}
                 {else}
-                    {$nbCols=1}
+                    {assign var="nbCols" value=1}
                 {/if}
                 <th>
                     {tr}Categories{/tr}
@@ -160,9 +160,9 @@
 
             {if ( !empty($other_columns) or !empty($other_columns_selected))}
                 {if isset($nbCols)}
-                    {$nbCols=$nbCols+1}
+                    {assign var="nbCols" value=$nbCols+1}
                 {else}
-                    {$nbCols=1}
+                    {assign var="nbCols" value=1}
                 {/if}
                 <th style="width: 1em">
                     {if !empty($other_columns)}



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a487410306b80889deb5ee1b7354151aab51acc2

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a487410306b80889deb5ee1b7354151aab51acc2
You're receiving this email because of your account on gitlab.com.

_______________________________________________
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.