X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FPb.pm;fp=lib%2FGruntmaster%2FPage%2FPb.pm;h=da518de3f35582021d41f792169c046b20b4ea92;hb=7dc3247307f2e86af154dc449224f22ba8923c79;hp=8e4a40886e26d329c6a113d84e97ed209ecd6f19;hpb=e9e5c8a440a6e3a088a4b9330650e310561ef518;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Pb.pm b/lib/Gruntmaster/Page/Pb.pm index 8e4a408..da518de 100644 --- a/lib/Gruntmaster/Page/Pb.pm +++ b/lib/Gruntmaster/Page/Pb.pm @@ -12,37 +12,36 @@ use constant TEMPLATES => {

Beginner

Easy

Medium

Hard

HTML }; sub _generate{ - my ($self, $htc, $path, $lang) = @_; - - $path =~ m,^(?:ct/([^/]+)/)?pb/index.html$,; - local $Gruntmaster::Data::contest = $1; + my ($self, $htc, $lang, $logger, $ct) = @_; + debug $logger => "language is '$lang' and contest is '$ct'"; + local $Gruntmaster::Data::contest = $ct if $ct; my @problems = sort { $b->{name} cmp $a->{name} } map +{ id => $_,