Skip to content

Commit

Permalink
Merge pull request greggilbert#38 from odorisioe/master
Browse files Browse the repository at this point in the history
Check recaptcha version
  • Loading branch information
greggilbert committed Dec 7, 2014
2 parents 3f970bb + dc7a9d3 commit defb0cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Greggilbert/Recaptcha/RecaptchaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function register()
{
$this->app->bind('Greggilbert\Recaptcha\CaptchaInterface', function()
{
if($this->app['config']->get('recaptcha::version', false) === 2 || $this->app['config']->get('recaptcha::v2', false))
if(app('config')->get('recaptcha::version', false) === 2 || app('config')->get('recaptcha::v2', false))
{
return new CheckRecaptchaV2;
}
Expand All @@ -115,4 +115,4 @@ public function provides()

}

}
}

0 comments on commit defb0cb

Please sign in to comment.