Skip to content

Commit

Permalink
Improved compatibility with extensions relying on widget type, closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Aug 20, 2014
1 parent 17a48da commit b980184
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/MadeYourDay/Contao/Form/Captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,16 @@
*/
class Captcha extends \FormCaptcha
{
public function __get($key)
{
if (
$key === 'type'
&& $this->arrConfiguration[$key] === 'rocksolid_antispam'
) {
// Improves compatibility with other contao extensions
return 'captcha';
}

return parent::__get($key);
}
}

0 comments on commit b980184

Please sign in to comment.