From 75404eef731c82cc4f14cf8878b5d3e1183a253f Mon Sep 17 00:00:00 2001
From: rtherville <romain.therville@inra.fr>
Date: Thu, 6 Jan 2022 16:12:38 +0100
Subject: [PATCH] Update to AnalysisTemplate.tpl

In the "download" analysis tab, the .png files are not excluded from the
list anymore.

Issue #218
---
 ui/nG6/pi1/analyzes/AnalysisTemplate.tpl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/nG6/pi1/analyzes/AnalysisTemplate.tpl b/ui/nG6/pi1/analyzes/AnalysisTemplate.tpl
index 92e1c74bc..af1c0eb97 100644
--- a/ui/nG6/pi1/analyzes/AnalysisTemplate.tpl
+++ b/ui/nG6/pi1/analyzes/AnalysisTemplate.tpl
@@ -119,7 +119,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 						{$dir=$data_folder|cat:$analyse.directory}
 						{foreach $dir|scandir as $file}
 							{assign var="link" value=(('fileadmin'|cat:$analyse.directory)|cat:'/')|cat:$file}
-							{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png" and !is_dir($link)}
+							{if $file != "." and $file != "" and $file != ".." and !is_dir($link)}
 								{$nb_files = $nb_files + 1}
 							{/if}
 						{/foreach}
@@ -142,7 +142,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 								</div>
 								{foreach $dir|scandir as $file}
 								{assign var="link" value=(('fileadmin'|cat:'/'|cat:$analyse.directory)|cat:'/')|cat:$file}
-								{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png" and !is_dir($link)}
+								{if $file != "." and $file != "" and $file != ".." and !is_dir($link)}
 									<li class="filelist"><a href="{$link}">{$file}</a> </li>
 								{/if}
 								{/foreach}
-- 
GitLab