From 093e68586fcf4c6ff17edfdd00aa1c639d264dc9 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Sun, 30 Sep 2012 10:24:58 +0200 Subject: Setting for default comparison method --- question.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'question.php') diff --git a/question.php b/question.php index 12d27dd..a3c7dfa 100644 --- a/question.php +++ b/question.php @@ -217,11 +217,10 @@ class qtype_algebra_question extends question_graded_by_strategy * @return boolean true if the response matches the answer, false otherwise */ function test_response_by_sage($response, $answer) { - // TODO: Store server information in the Moodle configuration $request=array( - 'host' => 'localhost', - 'port' => 7777, - 'uri' => '' + 'host' => $CFG->qtype_algebra_host, + 'port' => $CFG->qtype_algebra_port, + 'uri' => $CFG->qtype_algebra_uri, ); // Sets the name of the method to call to full_symbolic_compare $request['method']='full_symbolic_compare'; -- cgit v1.2.3