Fix bad ID loading
This commit is contained in:
parent
e0e294e784
commit
f8b1fbbd82
@ -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;
|
||||
|
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user