Commit 81675ccb authored by Nguyen Van Anh's avatar Nguyen Van Anh Committed by GitHub

Rollback #57

parent d6d559f9
......@@ -29,11 +29,6 @@ class NoCaptcha
*/
protected $http;
/**
* API requested control
*/
protected $api_requested = false;
/**
* NoCaptcha.
*
......@@ -61,11 +56,7 @@ class NoCaptcha
{
$attributes['data-sitekey'] = $this->sitekey;
$html = '';
if (empty($this->api_requested)) {
$this->api_requested = true;
$html .= '<script src="'.$this->getJsLink($lang).'" async defer></script>'."\n";
}
$html = '<script src="'.$this->getJsLink($lang).'" async defer></script>'."\n";
$html .= '<div class="g-recaptcha"'.$this->buildAttributes($attributes).'></div>';
return $html;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment