Browse Source

+ CMTD::Helpers->captcha_by_id

master
Alex 'AdUser' Z 7 years ago
parent
commit
bf0867573c
  1. 4
      lib/CMTD/Helpers.pm

4
lib/CMTD/Helpers.pm

@ -72,6 +72,10 @@ sub register {
my ($c, $pid) = @_;
return $self->app->db->select('comments', '*', {pid => $pid}, 'seq')->hashes;
});
$app->helper(captcha_by_id => sub {
my ($c, $cid) = @_;
return $self->app->db->select('captcha', '*', {cid => $cid})->hash;
});
$app->helper(add_page => sub {
my ($c, $sid, $page) = @_;
$self->app->db->insert('pages', {

Loading…
Cancel
Save