From 759ae227869b52a2ae9c12f25ee697d0d0e102a0 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 9 Mar 2014 08:54:12 +0200 Subject: [PATCH] Fix contest support in generic entry --- lib/Gruntmaster/Page/Generic.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Page/Generic.pm b/lib/Gruntmaster/Page/Generic.pm index 3fdd47c..54909e5 100644 --- a/lib/Gruntmaster/Page/Generic.pm +++ b/lib/Gruntmaster/Page/Generic.pm @@ -56,7 +56,7 @@ sub entry { ($id, $ct) = ($ct, $id) if $thing{contest}; local $Gruntmaster::Data::contest = $ct if $ct; debug $env => "Hash is $thing{hash} and id is $id"; - my %params = HGETALL "$thing{hash}.$id"; + my %params = HGETALL $ct ? "contest.$ct.$thing{hash}.$id" : "$thing{hash}.$id"; $thing{mangle}->(local $_ = \%params) if exists $thing{mangle}; wantarray ? %params : \%params } -- 2.39.2