sub _generate{
my ($self, $htc, $path, $lang) = @_;
- $path =~ m,(?:ct/([^/])+/)?pb/(\w+)\.html$,;
+ $path =~ m,(?:ct/([^/]+)/)?pb/(\w+)\.html$,;
my ($contest, $id) = ($1, $2);
$htc->param(cansubmit => 1);
if (defined $contest) {
- $htc->param(cansubmit => time >= contest_start $contest && time <= contest_end $contest);
+ $htc->param(cansubmit => time <= contest_end $contest);
$htc->param(contest => $contest);
}
$htc->param(formats => Gruntmaster::Page::Submit::FORMATS);