fix: order pdf in visible format list
deploy-preland / deploy barbariskatest (push) Successful in 18s
deploy-preland / deploy barbariskatest (push) Successful in 18s
This commit is contained in:
1 parent
f6ba231fef
commit
cf651218cc
2 files changed
+2
-2
No files matched your search
@@ -12,7 +12,7 @@ if ($form === false) {
|
||||
}
|
||||
|
||||
preg_match_all('/<div class="dropzone-form-format-item">([^<]+)<\\/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);
|
||||
|
||||
Reference in new issue
Block a user