| @@ 438-446 (lines=9) @@ | ||
| 435 | */ |
|
| 436 | private function _populate_form($link_id, $mode) |
|
| 437 | { |
|
| 438 | if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm'] && $mode != 'edit') { |
|
| 439 | $this->s_hidden_fields = array_merge($this->s_hidden_fields, $this->captcha->get_hidden_fields()); |
|
| 440 | ||
| 441 | $this->template->assign_vars([ |
|
| 442 | 'S_CONFIRM_CODE' => true, |
|
| 443 | 'CAPTCHA_TEMPLATE' => $this->captcha->get_template(), |
|
| 444 | ]); |
|
| 445 | } |
|
| 446 | ||
| 447 | if (!function_exists('generate_smilies')) { |
|
| 448 | include $this->root_path.'includes/functions_posting.'.$this->php_ext; |
|
| 449 | } |
|
| @@ 543-552 (lines=10) @@ | ||
| 540 | { |
|
| 541 | global $phpbb_extension_manager; |
|
| 542 | ||
| 543 | if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm'] && $mode == 'new') { |
|
| 544 | $this->s_hidden_fields = array_merge($this->s_hidden_fields, $this->captcha->get_hidden_fields()); |
|
| 545 | ||
| 546 | $this->user->add_lang('ucp'); |
|
| 547 | ||
| 548 | $this->template->assign_vars([ |
|
| 549 | 'CAPTCHA_TEMPLATE' => $this->captcha->get_template(), |
|
| 550 | ]); |
|
| 551 | } |
|
| 552 | ||
| 553 | $this->user->add_lang('posting'); |
|
| 554 | ||
| 555 | if (!function_exists('display_custom_bbcodes')) { |
|