diff --git a/QuestionsFile.class.php b/QuestionsFile.class.php index ee421cb..cead304 100644 --- a/QuestionsFile.class.php +++ b/QuestionsFile.class.php @@ -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)); } /** diff --git a/questions.php b/questions.php index 1df69a5..fd9013d 100755 --- a/questions.php +++ b/questions.php @@ -1,8 +1,8 @@ -