| @@ -42,10 +42,8 @@ | ||
| 42 | 42 | public $custom_header_ip; |
| 43 | 43 | public $current_form = 0; |
| 44 | 44 | public $tracking; |
| 45 | 45 | |
| 46 | - public $currency; | |
| 47 | - | |
| 48 | 46 | /** |
| 49 | 47 | * @since 6.0 |
| 50 | 48 | * |
| 51 | 49 | * @var string|false|null |
| @@ -121,9 +119,8 @@ | ||
| 121 | 119 | 'failed_msg' => __( 'We\'re sorry. It looks like you\'ve already submitted that.', 'formidable' ), |
| 122 | 120 | 'submit_value' => __( 'Submit', 'formidable' ), |
| 123 | 121 | 'login_msg' => __( 'You do not have permission to view this form.', 'formidable' ), |
| 124 | 122 | 'admin_permission' => __( 'You do not have permission to do that', 'formidable' ), |
| 125 | - 'new_tab_msg' => __( 'The page has been opened in a new tab.', 'formidable' ), | |
| 126 | 123 | |
| 127 | 124 | 'email_to' => '[admin_email]', |
| 128 | 125 | 'no_ips' => 0, |
| 129 | 126 | 'custom_header_ip' => false, // Use false by default. We show a warning when this is unset. Once global settings have been saved, this gets saved |
| @@ -164,12 +161,8 @@ | ||
| 164 | 161 | if ( ! isset( $this->$frm_role ) ) { |
| 165 | 162 | $this->$frm_role = 'administrator'; |
| 166 | 163 | } |
| 167 | 164 | } |
| 168 | - | |
| 169 | - if ( ! isset( $this->currency ) ) { | |
| 170 | - $this->currency = 'USD'; | |
| 171 | - } | |
| 172 | 165 | } |
| 173 | 166 | |
| 174 | 167 | /** |
| 175 | 168 | * @param array $params |
| @@ -346,17 +339,16 @@ | ||
| 346 | 339 | */ |
| 347 | 340 | private function update_settings( $params ) { |
| 348 | 341 | $this->active_captcha = $params['frm_active_captcha']; |
| 349 | 342 | $this->hcaptcha_pubkey = trim( $params['frm_hcaptcha_pubkey'] ); |
| 350 | - $this->hcaptcha_privkey = trim( $params['frm_hcaptcha_privkey'] ); | |
| 343 | + $this->hcaptcha_privkey = $params['frm_hcaptcha_privkey']; | |
| 351 | 344 | $this->pubkey = trim( $params['frm_pubkey'] ); |
| 352 | - $this->privkey = trim( $params['frm_privkey'] ); | |
| 345 | + $this->privkey = $params['frm_privkey']; | |
| 353 | 346 | $this->re_type = $params['frm_re_type']; |
| 354 | 347 | $this->re_lang = $params['frm_re_lang']; |
| 355 | 348 | $this->re_threshold = floatval( $params['frm_re_threshold'] ); |
| 356 | 349 | $this->load_style = $params['frm_load_style']; |
| 357 | 350 | $this->custom_css = $params['frm_custom_css']; |
| 358 | - $this->currency = $params['frm_currency']; | |
| 359 | 351 | |
| 360 | 352 | $checkboxes = array( 'mu_menu', 're_multi', 'use_html', 'jquery_css', 'accordion_js', 'fade_form', 'no_ips', 'custom_header_ip', 'tracking', 'admin_bar' ); |
| 361 | 353 | foreach ( $checkboxes as $set ) { |
| 362 | 354 | $this->$set = isset( $params[ 'frm_' . $set ] ) ? absint( $params[ 'frm_' . $set ] ) : 0; |