Я пытаюсь установить свое собственное сообщение об ошибке на мою капчу, но по какой-то причине оно повторяется дважды.
Вот мой код капчи:
$captcha = new Zend_Form_Element_Captcha(
'captcha', // This is the name of the input field
array('captcha' => array(
// First the type...
'captcha' => 'Image',
// Length of the word...
'wordLen' => 6,
// Captcha timeout, 5 mins
'timeout' => 300,
// What font to use...
'font' => 'images/captcha/font/arial.ttf',
// URL to the images
'imgUrl' => '/images/captcha',
//alt tag to keep SEO guys happy
'imgAlt' => "Captcha Image - Please verify you're human"
)));
А затем установитьмое собственное сообщение об ошибке:
$captcha->setErrorMessages(array('badCaptcha' => 'My message here'));
При сбое проверки я получаю:
'My message here; My message here'
Почему это дублирует ошибку и как ее исправить?