From abcad7ea775b85d4331e27beb80f78aa1cd22d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Thu, 5 Dec 2024 18:59:30 +0100 Subject: [PATCH] =?UTF-8?q?m=C3=A9thode=20inputfile=20attribut=20fldr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/template.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index fae10763..24c2265a 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -369,7 +369,7 @@ class template '&type=' . $attributes['type'] . '&akey=' . md5_file(core::DATA_DIR . 'core.json') . // Ajoute le nom du dossier si la variable est passée - (!empty($attributes['folder']) ? '&fldr=' . $attributes['folder'] : '') . + (empty($attributes['folder']) ? '&fldr=/': '&fldr=' . $attributes['folder']) . ($attributes['extensions'] ? '&extensions=' . $attributes['extensions'] : '') . '" class="inputFile %s %s"