From 9ee41ccbfcc1691f215e8a53335ad49e33e29895 Mon Sep 17 00:00:00 2001 From: Panfilov Konstantin Date: Thu, 15 Oct 2026 23:49:51 +0300 Subject: [PATCH] ui: show PDF in visible format list --- components/form.php | 1 + tests/check-visible-format-list.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/form.php b/components/form.php index cd2162b..a09b289 100644 --- a/components/form.php +++ b/components/form.php @@ -26,6 +26,7 @@ $redirectUrlUtm = $redirect_url_utm ?? '';
WebP
GIF
+много
+
PDF
diff --git a/tests/check-visible-format-list.php b/tests/check-visible-format-list.php index 47b8b57..4bd41ec 100644 --- a/tests/check-visible-format-list.php +++ b/tests/check-visible-format-list.php @@ -12,7 +12,7 @@ if ($form === false) { } preg_match_all('/
([^<]+)<\\/div>/', $form, $formatMatches); -$visibleFormats = ['JPG', 'PNG', 'HEIC', 'WebP', 'GIF', '+много']; +$visibleFormats = ['JPG', 'PNG', 'HEIC', 'WebP', 'GIF', '+много', 'PDF']; if ($formatMatches[1] !== $visibleFormats) { fwrite(STDERR, "FAIL: Preland не показывает утверждённый компактный список форматов в нужном порядке.\n"); exit(1);