Fix question getter

This commit is contained in:
Némunaire 2012-05-23 16:02:40 +02:00
parent a1c1244e14
commit 50d2a87575
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ class QuestionsFile
*/
public function get_question($id)
{
return new Question($this->root_node->getElementById($id));
return new Question($this->treeXML->getElementById($id));
}
/**

View File

@ -1,8 +1,8 @@
<!DOCTYPE html>
<?php
<?php
error_reporting(E_ALL);
//error_reporting(E_ALL);
define("FILENAME", "questions_file.nemubot");
@ -11,7 +11,7 @@ include("QuestionsFile.class.php");
// Change this variable depending on the server
$validationAddress = "http://178.170.101.82/~Cccompany/nemubot_askweb/validation.php?id=";
$validationAddress = "validation.php?id=";
if (isset ($_POST['send']))
{