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
+1
-1
@@ -25,8 +25,8 @@ $redirectUrlUtm = $redirect_url_utm ?? '';
|
|||||||
<div class="dropzone-form-format-item">HEIC</div>
|
<div class="dropzone-form-format-item">HEIC</div>
|
||||||
<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">PDF</div>
|
<div class="dropzone-form-format-item">PDF</div>
|
||||||
|
<div class="dropzone-form-format-item">+много</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', '+много', 'PDF'];
|
$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