mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add use statement for ReCaptcha
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user