| @@ 461-469 (lines=9) @@ | ||
| 458 | */ |
|
| 459 | private function _populate_form($link_id, $mode) |
|
| 460 | { |
|
| 461 | if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm'] && $mode != 'edit') |
|
| 462 | { |
|
| 463 | $this->s_hidden_fields = array_merge($this->s_hidden_fields, $this->captcha->get_hidden_fields()); |
|
| 464 | ||
| 465 | $this->template->assign_vars(array( |
|
| 466 | 'S_CONFIRM_CODE' => true, |
|
| 467 | 'CAPTCHA_TEMPLATE' => $this->captcha->get_template(), |
|
| 468 | )); |
|
| 469 | } |
|
| 470 | ||
| 471 | if (!function_exists('generate_smilies')) |
|
| 472 | { |
|
| @@ 561-570 (lines=10) @@ | ||
| 558 | { |
|
| 559 | global $phpbb_extension_manager; |
|
| 560 | ||
| 561 | if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm'] && $mode == 'new') |
|
| 562 | { |
|
| 563 | $this->s_hidden_fields = array_merge($this->s_hidden_fields, $this->captcha->get_hidden_fields()); |
|
| 564 | ||
| 565 | $this->language->add_lang('ucp'); |
|
| 566 | ||
| 567 | $this->template->assign_vars(array( |
|
| 568 | 'CAPTCHA_TEMPLATE' => $this->captcha->get_template(), |
|
| 569 | )); |
|
| 570 | } |
|
| 571 | ||
| 572 | $this->language->add_lang('posting'); |
|
| 573 | ||