private function init() { $this->lang = LangLoader::get('common', 'ReCaptcha'); $this->config = ReCaptchaConfig::load(); }
public function __construct() { require_once PATH_TO_ROOT . '/ReCaptcha/lib/recaptchalib.php'; $this->config = ReCaptchaConfig::load(); $this->is_recaptcha_v2 = $this->config->get_site_key() && $this->config->get_secret_key(); }