diff --git a/htdocs/application/controllers/main.php b/htdocs/application/controllers/main.php index 52de381..52e3068 100644 --- a/htdocs/application/controllers/main.php +++ b/htdocs/application/controllers/main.php @@ -619,6 +619,11 @@ class Main extends CI_Controller } $data = $this->pastes->getPaste(2, true, $this->uri->segment(3) == 'diff'); $data['reply_form'] = $this->_form_prep($data['lang_code'], 'Re: ' . $data['title'], $data['raw'], $data['pid']); + + if ($data['private'] == 1) + { + $data['reply_form']['use_recaptcha'] = 0; + } $this->load->view('view/view', $data); } else diff --git a/htdocs/application/models/pastes.php b/htdocs/application/models/pastes.php index 134f151..2a9f68f 100644 --- a/htdocs/application/models/pastes.php +++ b/htdocs/application/models/pastes.php @@ -253,6 +253,7 @@ class Pastes extends CI_Model $data['lang'] = $this->languages->code_to_description($row['lang']); $data['paste'] = $this->process->syntax(htmlspecialchars_decode($row['raw']) , $row['lang']); $data['created'] = $row['created']; + $data['private'] = $row['private']; $data['expire'] = $row['expire']; $data['toexpire'] = $row['toexpire']; $data['url'] = $this->_get_url($row['pid']);