Add use statement for ReCaptcha

This commit is contained in:
DariusIII
2015-12-24 00:20:01 +01:00
parent 6698335807
commit b0cdff457e
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -1,4 +1,5 @@
2015-12-23 DariusIII
Chg: Add use statement for ReCaptcha
Fix: Change how grabs are sorted in Gamma
2015-12-22 DariusIII
Fix: Fix icons and add grabs count to Gamma template
+4 -2
View File
@@ -1,6 +1,8 @@
<?php
namespace newznab;
use ReCaptcha\ReCaptcha;
class Captcha {
/**
* Smarty $page
@@ -176,7 +178,7 @@ class Captcha {
* @return bool
*/
private function _bootstrapCaptcha() {
if ($this->recaptcha instanceof \ReCaptcha\ReCaptcha) {
if ($this->recaptcha instanceof ReCaptcha) {
return true;
}
@@ -185,7 +187,7 @@ class Captcha {
if ($this->sitekey != false && $this->sitekey != '') {
if ($this->secretkey != false && $this->secretkey != '') {
$this->recaptcha = new \ReCaptcha\ReCaptcha($this->secretkey);
$this->recaptcha = new ReCaptcha($this->secretkey);
return true;
}
}