Skip to content
Snippets Groups Projects

Issue #3321620: possible fix.

Open Mathias requested to merge issue/captcha-3321620:3321620-fonts-are-not into 2.x
2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -272,7 +272,7 @@ class ImageCaptchaSettingsForm extends ConfigFormBase {
foreach ($fonts as $token) {
$fonts[$token] = $available_fonts[$token];
}
$problem_fonts = _image_captcha_check_fonts($fonts);
$problem_fonts = _image_captcha_check_fonts($fonts)[1];
if (count($problem_fonts) > 0) {
$form_state->setErrorByName('image_captcha_fonts', $this->t('The following fonts are not readable: %fonts.', ['%fonts' => implode(', ', $problem_fonts)]));
}
Loading