aboutsummaryrefslogtreecommitdiff
path: root/question.php
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2012-09-30 10:24:58 +0200
committerJean-Michel Vedrine <vedrine@vedrine.org>2012-09-30 10:24:58 +0200
commit093e68586fcf4c6ff17edfdd00aa1c639d264dc9 (patch)
tree021b90633db110196a1f41cde42972dda9c3916c /question.php
parent96bee2b33467a1ce54f88c77b8a867ef1f7a9a97 (diff)
Setting for default comparison method
Diffstat (limited to 'question.php')
-rw-r--r--question.php7
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';