Fix question getter
This commit is contained in:
parent
a1c1244e14
commit
50d2a87575
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user