{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/6228","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6228/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6228/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6228/events","html_url":"https://github.com/joomla/joomla-cms/issues/6228","id":59340451,"number":6228,"title":"Recaptcha plugin $code variable is obsolete","user":{"login":"thekrotek","id":2802073,"avatar_url":"https://avatars.githubusercontent.com/u/2802073?v=3","gravatar_id":"","url":"https://api.github.com/users/thekrotek","html_url":"https://github.com/thekrotek","followers_url":"https://api.github.com/users/thekrotek/followers","following_url":"https://api.github.com/users/thekrotek/following{/other_user}","gists_url":"https://api.github.com/users/thekrotek/gists{/gist_id}","starred_url":"https://api.github.com/users/thekrotek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thekrotek/subscriptions","organizations_url":"https://api.github.com/users/thekrotek/orgs","repos_url":"https://api.github.com/users/thekrotek/repos","events_url":"https://api.github.com/users/thekrotek/events{/privacy}","received_events_url":"https://api.github.com/users/thekrotek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-28T12:40:43Z","updated_at":"2015-03-01T20:20:34Z","closed_at":"2015-03-01T20:20:33Z","body":"#### Steps to reproduce the issue\r\n\r\nUse recaptcha plugin and do not define $code for 'onCheckAnswer' event.\r\n\r\n#### Expected result\r\n\r\nSuccessfully submitted form.\r\n\r\n#### Actual result\r\n\r\nThrows an error:\r\n\r\nWarning:  Missing argument 1 for PlgCaptchaRecaptcha::onCheckAnswer() in /mysite/plugins/captcha/recaptcha/recaptcha.php on line 114\r\n\r\n#### System information (as much as possible)\r\n\r\nJoomla 3.4, custom form.\r\n\r\n#### Additional comments\r\n\r\nFix is very simple: remove $code variable from onCheckAnswer() function definition. It's obsolete and never used."},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/76628178","html_url":"https://github.com/joomla/joomla-cms/issues/6228#issuecomment-76628178","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6228","id":76628178,"user":{"login":"zero-24","id":2596554,"avatar_url":"https://avatars.githubusercontent.com/u/2596554?v=3","gravatar_id":"","url":"https://api.github.com/users/zero-24","html_url":"https://github.com/zero-24","followers_url":"https://api.github.com/users/zero-24/followers","following_url":"https://api.github.com/users/zero-24/following{/other_user}","gists_url":"https://api.github.com/users/zero-24/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-24/subscriptions","organizations_url":"https://api.github.com/users/zero-24/orgs","repos_url":"https://api.github.com/users/zero-24/repos","events_url":"https://api.github.com/users/zero-24/events{/privacy}","received_events_url":"https://api.github.com/users/zero-24/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T20:20:34Z","updated_at":"2015-03-01T20:20:34Z","body":"Closing as we have a PR by @PhilETaylor https://github.com/joomla/joomla-cms/pull/6235<hr /><sub>This comment was created with the <a href=\"https://github.com/joomla/jissues\">J!Tracker Application</a> at <a href=\"http://issues.joomla.org/tracker/joomla-cms/6228\">issues.joomla.org/joomla-cms/6228</a>.</sub>"}}