X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FGeneric.pm;h=54909e50a7422a5bd706f705606ae6fb650472bc;hb=759ae227869b52a2ae9c12f25ee697d0d0e102a0;hp=3fdd47c0a157d7e190ab5c5c6464bf1e5b53787e;hpb=541984f6d3272414bbac7ceb0e599fa5ddc262be;p=gruntmaster-page.git 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 }