Skip to content
Snippets Groups Projects
Commit efbd670e authored by Joshua Sedler's avatar Joshua Sedler :cartwheel_tone2:
Browse files

Issue #3321620 by mathias.k, Grevil: Fonts are not readable

parent 99336349
Branches
Tags 8.x-1.4
No related merge requests found
......@@ -277,7 +277,7 @@ class ImageCaptchaSettingsForm extends ConfigFormBase {
foreach ($fonts as $token) {
$fonts[$token] = $available_fonts[$token];
}
$problem_fonts = _image_captcha_check_fonts($fonts);
[$readable_fonts, $problem_fonts] = _image_captcha_check_fonts($fonts);
if (count($problem_fonts) > 0) {
$form_state->setErrorByName('image_captcha_fonts', $this->t('The following fonts are not readable: %fonts.', ['%fonts' => implode(', ', $problem_fonts)]));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment