don't use google captcha on encrypted pastes

This commit is contained in:
Claude 2015-01-27 13:41:09 +01:00
parent 6b1b787023
commit 9ea9327a1d
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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']);