- $path = ($path =~ m,ct/(.*)/index,)[0];
-
- $htc->param(id => $path);
- $htc->param(name => contest_name $path);
- $htc->param(start => strftime '%c', localtime contest_start $path);
- $htc->param(end => strftime '%c', localtime contest_end $path);
- $htc->param(started => time >= contest_start $path);
+ $htc->param(id => $id);
+ $htc->param(name => contest_name $id);
+ $htc->param(start => strftime '%c', localtime contest_start $id);
+ $htc->param(end => strftime '%c', localtime contest_end $id);
+ $htc->param(started => time >= contest_start $id);