Zend Framework

Zend_Captcha_ReCaptcha options not working

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.1
  • Fix Version/s: 1.9.3
  • Component/s: Zend_Captcha
  • Labels:
    None

Description

When using Zend_Captcha_ReCaptcha, I try to pass options to ReCaptcha to be able to change the language, which is not working :

$captcha = new Zend_Captcha_ReCaptcha();

$captcha->setPubkey('MyPubKey');
$captcha->setPrivkey('MyPrivKey');

$captcha->setOption('lang', 'fr');

echo $captcha->render();

Displays ReCaptcha in english instead of french

Can be worked around using :

$captcha->getService()->setOption('lang', 'fr');

Activity

Hide
Pádraic Brady added a comment -

Fixed in r18164

Show
Pádraic Brady added a comment - Fixed in r18164

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: