From 50d2a87575fa0dc1251b35fce63bf0e08447f1db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9munaire?= Date: Wed, 23 May 2012 16:02:40 +0200 Subject: [PATCH] Fix question getter --- QuestionsFile.class.php | 2 +- questions.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 eac5e87..a1cd596 100755 --- a/questions.php +++ b/questions.php @@ -1,8 +1,8 @@ -