diff --git a/Changelog b/Changelog index 6b90907b7..7c0265176 100755 --- a/Changelog +++ b/Changelog @@ -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 diff --git a/newznab/Captcha.php b/newznab/Captcha.php index 7a0606c1e..d0f10a196 100644 --- a/newznab/Captcha.php +++ b/newznab/Captcha.php @@ -1,6 +1,8 @@ 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; } }