? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
2 Jun 2014

Captcha was broken by this commit: acb7e30

which reversed the order of id and class for code style. To fix this i've given class a default empty string value and used it in the method

avatar wilsonge wilsonge - open - 2 Jun 2014
avatar Bakual
Bakual - comment - 2 Jun 2014

Can you add to the doc block for the $class param that the string needs to be passed as class="required", not like one would assume just the class itself?
Then that part should be clear to anyone.

Beside that I fully support that fix.

avatar wilsonge
wilsonge - comment - 2 Jun 2014

Sure. Although if you're using the JCaptcha class - which is the recommended thing to do - this automatic (see https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/captcha/captcha.php#L170)

avatar Bakual Bakual - change - 2 Jun 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-06-02 19:23:29
avatar Bakual Bakual - close - 2 Jun 2014
avatar Bakual Bakual - close - 2 Jun 2014
avatar Bakual
Bakual - comment - 2 Jun 2014

Thanks @wilsonge

Merged from code review to fix the previous commit.

avatar wilsonge wilsonge - head_ref_deleted - 2 Jun 2014

Add a Comment

Login with GitHub to post a comment