From bd11bbfb8adb703e657fb9ab211ddd01ce6d9012 Mon Sep 17 00:00:00 2001
From: Jean-Michel Vedrine <vedrine@vedrine.org>
Date: Mon, 1 Jan 2018 10:19:12 +0100
Subject: Change the name of the algebra variable class

---
 questiontype.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'questiontype.php')

diff --git a/questiontype.php b/questiontype.php
index f49bd55..347b427 100644
--- a/questiontype.php
+++ b/questiontype.php
@@ -501,7 +501,7 @@ class qtype_algebra extends question_type {
         $question->variables = array();
         if (!empty($questiondata->options->variables)) {
             foreach ($questiondata->options->variables as $v) {
-                $question->variables[$v->id] = new question_variable($v->id, $v->name, $v->min, $v->max);
+                $question->variables[$v->id] = new qtype_algebra_variable($v->id, $v->name, $v->min, $v->max);
             }
         }
         $question->compareby = $questiondata->options->compareby;
-- 
cgit v1.2.3