From 49840caf13a1a3e999d174939324fff3b3248b72 Mon Sep 17 00:00:00 2001 From: acli Date: Wed, 5 Feb 2003 10:04:14 +0000 Subject: [PATCH] Worked around weirdness with HTML::Template; without the {}, it complains of being passed an odd number of arguments even though we are not --- shelves.pl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/shelves.pl b/shelves.pl index 121dac29ca..fd06a41504 100755 --- a/shelves.pl +++ b/shelves.pl @@ -69,11 +69,11 @@ if ($query->param('modifyshelfcontents')) { } SWITCH: { - $template->param( loggedinuser => $loggedinuser, - viewshelf => $query->param('viewshelf'), - shelves => $query->param('shelves'), - headerbackgroundcolor => $headerbackgroundcolor, - circbackgroundcolor => $circbackgroundcolor); + $template->param({ loggedinuser => $loggedinuser, + viewshelf => $query->param('viewshelf'), + shelves => $query->param('shelves'), + headerbackgroundcolor => $headerbackgroundcolor, + circbackgroundcolor => $circbackgroundcolor }); if ($query->param('viewshelf')) { viewshelf($query->param('viewshelf')); last SWITCH;} if ($query->param('shelves')) { shelves(); last SWITCH;} my $color=''; @@ -158,6 +158,10 @@ sub viewshelf { # # $Log$ +# Revision 1.12 2003/02/05 10:04:14 acli +# Worked around weirdness with HTML::Template; without the {}, it complains +# of being passed an odd number of arguments even though we are not +# # Revision 1.11 2003/02/05 09:23:03 acli # Fixed a few minor errors to make it run # Noted correct tab size -- 2.39.5