|
@@ 367-371 (lines=5) @@
|
| 364 |
|
} |
| 365 |
|
} |
| 366 |
|
|
| 367 |
|
if ($this->max_comment_length != 0) { |
| 368 |
|
$this->form_validation->set_rules('comment_text', lang('Comment', 'comments'), 'trim|required|xss_clean|max_length[' . $this->max_comment_length . ']'); |
| 369 |
|
} else { |
| 370 |
|
$this->form_validation->set_rules('comment_text', lang('Comment', 'comments'), 'trim|required|xss_clean'); |
| 371 |
|
} |
| 372 |
|
|
| 373 |
|
if (!$this->form_validation->run($this)) { |
| 374 |
|
// $this->dx_auth->captcha(); |
|
@@ 488-492 (lines=5) @@
|
| 485 |
|
} |
| 486 |
|
} |
| 487 |
|
|
| 488 |
|
if ($this->max_comment_length != 0) { |
| 489 |
|
$this->form_validation->set_rules('comment_text', lang('Comment', 'comments'), 'trim|required|xss_clean|max_length[' . $this->max_comment_length . ']'); |
| 490 |
|
} else { |
| 491 |
|
$this->form_validation->set_rules('comment_text', lang('Comment', 'comments'), 'trim|required|xss_clean'); |
| 492 |
|
} |
| 493 |
|
|
| 494 |
|
if ($this->form_validation->run($this) == FALSE) { |
| 495 |
|
($hook = get_hook('comments_validation_failed')) ? eval($hook) : NULL; |