@@ -163,11 +163,11 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | $this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_CONFIG_VISUAL'); |
| 166 | - trigger_error($this->lang->lang['CONFIG_UPDATED'] . adm_back_link($module->u_action)); |
|
| 166 | + trigger_error($this->lang->lang['CONFIG_UPDATED'].adm_back_link($module->u_action)); |
|
| 167 | 167 | } |
| 168 | 168 | else if ($this->request->is_set_post('submit')) |
| 169 | 169 | { |
| 170 | - trigger_error($this->lang->lang['FORM_INVALID'] . adm_back_link($module->u_action)); |
|
| 170 | + trigger_error($this->lang->lang['FORM_INVALID'].adm_back_link($module->u_action)); |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | foreach ($captcha_vars as $captcha_var => $template_var) |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | else |
| 203 | 203 | { |
| 204 | 204 | $contact_link = phpbb_get_board_contact_link($this->config, $this->phpbb_root_path, $this->phpEx); |
| 205 | - $explain = $this->lang->lang(($this->type != CONFIRM_POST) ? 'GOTHICK_RECAPTCHA2_CONFIRM_EXPLAIN' : 'GOTHICK_RECAPTCHA2_POST_CONFIRM_EXPLAIN', '<a href="' . $contact_link . '">', '</a>'); |
|
| 205 | + $explain = $this->lang->lang(($this->type != CONFIRM_POST) ? 'GOTHICK_RECAPTCHA2_CONFIRM_EXPLAIN' : 'GOTHICK_RECAPTCHA2_POST_CONFIRM_EXPLAIN', '<a href="'.$contact_link.'">', '</a>'); |
|
| 206 | 206 | |
| 207 | 207 | // Language code for reCAPTCHA to use |
| 208 | 208 | $recaptcha2_lang = $this->lang->lang('GOTHICK_RECAPTCHA2_LANG'); |
@@ -164,8 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | $this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_CONFIG_VISUAL'); |
| 166 | 166 | trigger_error($this->lang->lang['CONFIG_UPDATED'] . adm_back_link($module->u_action)); |
| 167 | - } |
|
| 168 | - else if ($this->request->is_set_post('submit')) |
|
| 167 | + } else if ($this->request->is_set_post('submit')) |
|
| 169 | 168 | { |
| 170 | 169 | trigger_error($this->lang->lang['FORM_INVALID'] . adm_back_link($module->u_action)); |
| 171 | 170 | } |
@@ -198,8 +197,7 @@ discard block |
||
| 198 | 197 | if ($this->is_solved()) |
| 199 | 198 | { |
| 200 | 199 | return false; |
| 201 | - } |
|
| 202 | - else |
|
| 200 | + } else |
|
| 203 | 201 | { |
| 204 | 202 | $contact_link = phpbb_get_board_contact_link($this->config, $this->phpbb_root_path, $this->phpEx); |
| 205 | 203 | $explain = $this->lang->lang(($this->type != CONFIRM_POST) ? 'GOTHICK_RECAPTCHA2_CONFIRM_EXPLAIN' : 'GOTHICK_RECAPTCHA2_POST_CONFIRM_EXPLAIN', '<a href="' . $contact_link . '">', '</a>'); |
@@ -259,8 +257,7 @@ discard block |
||
| 259 | 257 | if (!parent::validate()) |
| 260 | 258 | { |
| 261 | 259 | return false; |
| 262 | - } |
|
| 263 | - else |
|
| 260 | + } else |
|
| 264 | 261 | { |
| 265 | 262 | try |
| 266 | 263 | { |
@@ -271,15 +268,13 @@ discard block |
||
| 271 | 268 | { |
| 272 | 269 | $this->solved = true; |
| 273 | 270 | return false; |
| 274 | - } |
|
| 275 | - else |
|
| 271 | + } else |
|
| 276 | 272 | { |
| 277 | 273 | // $errors = $response->getErrorCodes(); |
| 278 | 274 | // TODO: Can we pass something less general back from the error response above? |
| 279 | 275 | return $this->lang->lang['GOTHICK_RECAPTCHA2_INCORRECT']; |
| 280 | 276 | } |
| 281 | - } |
|
| 282 | - catch (\Exception $e) |
|
| 277 | + } catch (\Exception $e) |
|
| 283 | 278 | { |
| 284 | 279 | trigger_error($this->lang->lang('GOTHICK_RECAPTCHA2_EXCEPTION', $e->getMessage()), E_USER_ERROR); |
| 285 | 280 | } |