[foundation-web] React on the "id" parameter as if it was the "election_id" parameter
- From: Tobias Mueller <tobiasmue src gnome org>
- To: svn-commits-list gnome org
- Subject: [foundation-web] React on the "id" parameter as if it was the "election_id" parameter
- Date: Mon, 8 Jun 2009 06:26:51 -0400 (EDT)
commit 116081ba317cc7e6619c079d08148335edde47f2
Author: Tobias Mueller <tobiasmue gnome org>
Date: Mon Jun 8 12:25:21 2009 +0200
React on the "id" parameter as if it was the "election_id" parameter
This additional code path should be removed, if the current elections
are over. I just added that path because I messed up the announcement
mail.
---
foundation.gnome.org/vote/vote.wml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/foundation.gnome.org/vote/vote.wml b/foundation.gnome.org/vote/vote.wml
index cf875e7..c3dde0e 100644
--- a/foundation.gnome.org/vote/vote.wml
+++ b/foundation.gnome.org/vote/vote.wml
@@ -27,8 +27,11 @@ if ($handle === FALSE) {
$election_id = -1;
if ($step == 1) {
- if (isset ($_GET["election_id"]) && is_numeric ($_GET["election_id"]))
+ if (isset ($_GET["election_id"]) && is_numeric ($_GET["election_id"])) {
$election_id = $_GET["election_id"];
+ } else if (isset ($_GET["id"]) && is_numeric ($_GET["id"])) {
+ $election_id = $_GET["id"]; //FIXME: Remove this else path after 2009 elections
+ }
} else if ($step >= 1) {
if (isset ($_POST["election_id"]) && is_numeric ($_POST["election_id"]))
$election_id = $_POST["election_id"];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]