]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Gruntmaster/Page/Pb/Entry.pm
Merge branch 'master' into mindcoding
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Pb / Entry.pm
index 9fcefe5ac30e3d65b58e0121441bc5ad47c1892d..84fbf052aa43efd9c0af6a61e3fa4d6a8f3466ed 100644 (file)
@@ -7,13 +7,14 @@ use Gruntmaster::Page::Base pb_entry => '<tmpl_var name>';
 our @ISA = qw/Gruntmaster::Page::Base/;
 our $VERSION = '0.001';
 
-use constant FORMATS => [qw/C CPP JAVA PERL PYTHON/];
+use constant FORMATS => [qw/C CPP JAVA PASCAL PERL PYTHON/];
 
 sub _generate{
        my ($self, $htc, $lang, $env, $contest, $id) = @_;
        debug $env => "language is '$lang', contest is '$contest', id is '$id'";
        my $user = $env->{REMOTE_USER};
        if ($contest && $user) {
+               local $Gruntmaster::Data::contest = $contest;
                mark_open $id, $user;
                debug $env => "Marking problem $id of contest $contest open by $user";
        }
This page took 0.026968 seconds and 4 git commands to generate.