ui: show PDF in visible format list
deploy-preland / deploy barbariskatest (push) Failing after 3h14m46s
deploy-preland / deploy barbariskatest (push) Failing after 3h14m46s
This commit is contained in:
1 parent
eac2489a49
commit
9ee41ccbfc
2 files changed
+2
-1
No files matched your search
@@ -26,6 +26,7 @@ $redirectUrlUtm = $redirect_url_utm ?? '';
|
|||||||
<div class="dropzone-form-format-item">WebP</div>
|
<div class="dropzone-form-format-item">WebP</div>
|
||||||
<div class="dropzone-form-format-item">GIF</div>
|
<div class="dropzone-form-format-item">GIF</div>
|
||||||
<div class="dropzone-form-format-item">+много</div>
|
<div class="dropzone-form-format-item">+много</div>
|
||||||
|
<div class="dropzone-form-format-item">PDF</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dropzone-form-action">
|
<div class="dropzone-form-action">
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ if ($form === false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
preg_match_all('/<div class="dropzone-form-format-item">([^<]+)<\\/div>/', $form, $formatMatches);
|
preg_match_all('/<div class="dropzone-form-format-item">([^<]+)<\\/div>/', $form, $formatMatches);
|
||||||
$visibleFormats = ['JPG', 'PNG', 'HEIC', 'WebP', 'GIF', '+много'];
|
$visibleFormats = ['JPG', 'PNG', 'HEIC', 'WebP', 'GIF', '+много', 'PDF'];
|
||||||
if ($formatMatches[1] !== $visibleFormats) {
|
if ($formatMatches[1] !== $visibleFormats) {
|
||||||
fwrite(STDERR, "FAIL: Preland не показывает утверждённый компактный список форматов в нужном порядке.\n");
|
fwrite(STDERR, "FAIL: Preland не показывает утверждённый компактный список форматов в нужном порядке.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
Reference in new issue
Block a user