diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2012-09-30 10:24:58 +0200 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2012-09-30 10:24:58 +0200 |
commit | 093e68586fcf4c6ff17edfdd00aa1c639d264dc9 (patch) | |
tree | 021b90633db110196a1f41cde42972dda9c3916c /question.php | |
parent | 96bee2b33467a1ce54f88c77b8a867ef1f7a9a97 (diff) |
Setting for default comparison method
Diffstat (limited to 'question.php')
-rw-r--r-- | question.php | 7 |
1 files changed, 3 insertions, 4 deletions
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'; |