[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] Revert "[BP][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 <6894bd41af7e9_2cd5b9c267f@gitlab-sidekiq-low-urgency-cpu-bound-v2-fcfcfbbb-xdpb4.mail>

Baraka Kinywa pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
ff48d2ec by Baraka Kinywa at 2025-08-07T17:42:41+03:00
Revert "[BP][FIX] Fgal : Remove stray number in list/admin view header"
---
* Revert "[BP][FIX] Fgal : Remove stray number in list/admin view header"

This reverts merge request !8217

See merge request tikiwiki/tiki!8225

- - - - -


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)}
-                    {assign var="nbCols" value=$nbCols+1}
+                    {$nbCols=$nbCols+1}
                 {else}
-                    {assign var="nbCols" value=1}
+                    {$nbCols=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)}
-                    {assign var="nbCols" value=$nbCols+1}
+                    {$nbCols++}
                 {else}
-                    {assign var="nbCols" value=1}
+                    {$nbCols = 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)}
-                            {assign var="nbCols" value=$nbCols+1}
+                            {$nbCols=$nbCols+1}
                         {else}
-                            {assign var="nbCols" value=1}
+                            {$nbCols=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)}
-                            {assign var="nbCols" value=$nbCols+1}
+                            {$nbCols=$nbCols+1}
                         {else}
-                            {assign var="nbCols" value=1}
+                            {$nbCols=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)}
-                    {assign var="nbCols" value=$nbCols+1}
+                    {$nbCols=$nbCols+1}
                 {else}
-                    {assign var="nbCols" value=1}
+                    {$nbCols=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)}
-                    {assign var="nbCols" value=$nbCols+1}
+                    {$nbCols=$nbCols+1}
                 {else}
-                    {assign var="nbCols" value=$nbCols+1}
+                    {$nbCols=1}
                 {/if}
                 <th>
                     {tr}Actions{/tr}
@@ -148,9 +148,9 @@
 
             {if ( !empty($other_columns) or !empty($other_columns_selected))}
                 {if isset($nbCols)}
-                    {assign var="nbCols" value=$nbCols+1}
+                    {$nbCols=$nbCols+1}
                 {else}
-                    {assign var="nbCols" value=1}
+                    {$nbCols=1}
                 {/if}
                 <th style="width: 1em">
                     {if !empty($other_columns)}



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ff48d2ec43f4e1396b5c491012ccfafdcf914664
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.