private function save() { $this->config->set_site_key($this->form->get_value('site_key')); $this->config->set_secret_key($this->form->get_value('secret_key')); ReCaptchaConfig::save(); }
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(); }