From 1acb7050606da6f59dde2381599488452e1c02a1 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 14 Feb 2005 15:29:10 +0000 Subject: [PATCH] Fix so registration works. --- html/do-registration.pl | 2 +- html/registration.pl | 1 + html/templates/registration.tmpl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/html/do-registration.pl b/html/do-registration.pl index a81e48a..36c5e2f 100755 --- a/html/do-registration.pl +++ b/html/do-registration.pl @@ -14,6 +14,6 @@ my $paid = $cgi->param('paid'); $dbh->do('INSERT INTO tournamentparticipation (tournament, player, paid) VALUES (?,?,?)', undef, $tournament, $player, $paid); -ccbs::print_see_other('registration.pl?id=$tournament'); +ccbs::print_see_other('registration.pl?id=' . $tournament); $dbh->disconnect; diff --git a/html/registration.pl b/html/registration.pl index d16ee2a..1a7ba77 100755 --- a/html/registration.pl +++ b/html/registration.pl @@ -15,6 +15,7 @@ my $available = ccbs::db_fetch_all($dbh, 'SELECT * FROM players WHERE player NOT ccbs::print_header(); ccbs::process_template('registration.tmpl', $tournament->{'tournamentname'}, { + tournament => $tournament, registered => $registered, available => $available }); diff --git a/html/templates/registration.tmpl b/html/templates/registration.tmpl index c2d873b..7d21ee5 100644 --- a/html/templates/registration.tmpl +++ b/html/templates/registration.tmpl @@ -3,7 +3,7 @@
- + -- 2.39.2
Spiller