MDL-28444 synchronized datasets: fix typo in get_variants_selection_seed()
authorHenning Bostelmann <henning.bostelmann@york.ac.uk>
Sat, 20 Aug 2011 10:45:41 +0000 (11:45 +0100)
committerHenning Bostelmann <henning.bostelmann@york.ac.uk>
Sat, 20 Aug 2011 10:49:26 +0000 (11:49 +0100)
question/type/calculated/question.php
question/type/calculatedmulti/question.php

index bb59e1e..3ecbc9d 100644 (file)
@@ -80,7 +80,7 @@ class qtype_calculated_question extends qtype_numerical_question
 
     public function get_variants_selection_seed() {
         if (!empty($this->synchronised) &&
-                $this->datasetloader->datasets_are_synchronised($question->category)) {
+                $this->datasetloader->datasets_are_synchronised($this->category)) {
             return 'category' . $this->category;
         } else {
             return parent::get_variants_selection_seed();
index aa96ac2..35c9155 100644 (file)
@@ -72,7 +72,7 @@ class qtype_calculatedmulti_single_question extends qtype_multichoice_single_que
 
     public function get_variants_selection_seed() {
         if (!empty($this->synchronised) &&
-                $this->datasetloader->datasets_are_synchronised($question->category)) {
+                $this->datasetloader->datasets_are_synchronised($this->category)) {
             return 'category' . $this->category;
         } else {
             return parent::get_variants_selection_seed();