From b0cdff457e033a0396e69417bb440fdfba67bec6 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 24 Dec 2015 00:20:01 +0100 Subject: [PATCH] Add use statement for ReCaptcha --- Changelog | 1 + newznab/Captcha.php | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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; } }