- my ($self, $htc, $path, $lang) = @_;
-
- $path =~ m,^(?:ct/([^/]+)/)?pb/index.html$,;
- local $Gruntmaster::Data::contest = $1;
+ my ($self, $htc, $lang, $env, $ct) = @_;
+ debug $env => "language is '$lang' and contest is '$ct'";
+ local $Gruntmaster::Data::contest = $ct if $ct;