diff --git a/Question.class.php b/Question.class.php index 32bdeb9..a11d8e2 100644 --- a/Question.class.php +++ b/Question.class.php @@ -14,7 +14,7 @@ class Question { if (isset($node)) { - $this->id = $node->getAttribute("id"); + $this->id = $node->getAttribute("xml:id"); $this->added_time = $node->getAttribute("addedtime"); if (intval($node->getAttribute("validated"))) $this->validated = true; diff --git a/confirmation.php b/confirmation.php index 8c6e1dd..7f7e9f8 100644 --- a/confirmation.php +++ b/confirmation.php @@ -17,7 +17,7 @@ if (!$question) else { $dest_mail = $question->get_validator(); - $validationAddress = "validation.php?id="; + $validationAddress = "validation.php?id=".$question->getId(); // Uncomment the following part for random email /* @@ -49,8 +49,7 @@ else ."Adresse de confirmation de la question:\n" . "http://".$_SERVER["SERVER_NAME"] - . dirname($_SERVER["REQUEST_URI"])."/validation.php?id=" - . $question->getId() + . dirname($_SERVER["REQUEST_URI"]) . $validationAddress . "\n\n Merci beaucoup de votre participation\n"