From cf651218cc425720f9147c5c0fac911c9d588ce9 Mon Sep 17 00:00:00 2001 From: Panfilov Konstantin Date: Fri, 16 Oct 2026 03:20:09 +0300 Subject: [PATCH] fix: order pdf in visible format list --- components/form.php | 2 +- tests/check-visible-format-list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/form.php b/components/form.php index a09b289..a10cb99 100644 --- a/components/form.php +++ b/components/form.php @@ -25,8 +25,8 @@ $redirectUrlUtm = $redirect_url_utm ?? '';
HEIC
WebP
GIF
-
+много
PDF
+
+много
diff --git a/tests/check-visible-format-list.php b/tests/check-visible-format-list.php index 4bd41ec..1eab42c 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', '+много', 'PDF']; +$visibleFormats = ['JPG', 'PNG', 'HEIC', 'WebP', 'GIF', 'PDF', '+много']; if ($formatMatches[1] !== $visibleFormats) { fwrite(STDERR, "FAIL: Preland не показывает утверждённый компактный список форматов в нужном порядке.\n"); exit(1);