X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FCt.pm;h=1c108fddf5162f534ede875c41128c6e89c3d69d;hb=4aa8ba862bf3a79362df73c3d1e8707e8135af23;hp=8ef38155306fe9b42ec55e92089b04a6a5282086;hpb=4d44768e04bf89f1908e23edbe162a66ffcee02f;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Ct.pm b/lib/Gruntmaster/Page/Ct.pm index 8ef3815..1c108fd 100644 --- a/lib/Gruntmaster/Page/Ct.pm +++ b/lib/Gruntmaster/Page/Ct.pm @@ -10,7 +10,7 @@ our $VERSION = '0.001'; use HTML::Template::Compiled; use POSIX qw/strftime/; use Gruntmaster::Page::Common qw/cook_templates reload_templates/; -use Gruntmaster::Data qw/contest_name contest_start contest_end contest_owner/; +use Gruntmaster::Data qw/contests contest_name contest_start contest_end contest_owner/; my %orig_templates = ( en => <<'HTML', @@ -61,7 +61,7 @@ HTML my %templates = cook_templates %orig_templates, ct => 'Contests'; sub generate{ - %templates = cook_templates %orig_templates, ct => 'Contests' if reload_template; + %templates = cook_templates %orig_templates, ct => 'Contests' if reload_templates; my $htc = HTML::Template::Compiled->new(scalarref => \$templates{$_[1]}); my (@running, @pending, @finished);