]> git.mjollnir.org Git - moodle.git/commitdiff
fixed bug which prevented display of JCross clues on PHP 5.1.2
authorgbateson <gbateson>
Wed, 19 Apr 2006 06:20:37 +0000 (06:20 +0000)
committergbateson <gbateson>
Wed, 19 Apr 2006 06:20:37 +0000 (06:20 +0000)
mod/hotpot/template/v6.php

index 4863219514ea4ed94bedc7c40fec9619cd6c1192..02a0346ee1e3ed8ea43484355d5d21a930ce100d 100644 (file)
@@ -1059,7 +1059,11 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
        }\r
        function v6_expand_jcross_clues($direction) {\r
                // $direction: A(cross) or D(own)\r
-               $this->v6_get_jcross_grid($row=NULL, $r_max=0, $c_max=0);\r
+               $row = NULL;\r
+               $r_max = 0;\r
+               $c_max = 0;\r
+               $this->v6_get_jcross_grid($row, $r_max, $c_max);\r
+\r
                $i = 0; // clue index;\r
                $str = '';\r
                for($r=0; $r<=$r_max; $r++) {\r
@@ -1093,9 +1097,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
        // jcross6.js_\r
 \r
        function v6_expand_LetterArray() {\r
-               $row=NULL;\r
-               $r_max=0;\r
-               $c_max=0;\r
+               $row = NULL;\r
+               $r_max = 0;\r
+               $c_max = 0;\r
                $this->v6_get_jcross_grid($row, $r_max, $c_max);\r
 \r
                $str = '';\r
@@ -1109,9 +1113,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
                return $str;\r
        }\r
        function v6_expand_GuessArray() {\r
-               $row=NULL;\r
-               $r_max=0;\r
-               $c_max=0;\r
+               $row = NULL;\r
+               $r_max = 0;\r
+               $c_max = 0;\r
                $this->v6_get_jcross_grid($row, $r_max, $c_max);\r
 \r
                $str = '';\r
@@ -1121,9 +1125,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
                return $str;\r
        }\r
        function v6_expand_ClueNumArray() {\r
-               $row=NULL;\r
-               $r_max=0;\r
-               $c_max=0;\r
+               $row = NULL;\r
+               $r_max = 0;\r
+               $c_max = 0;\r
                $this->v6_get_jcross_grid($row, $r_max, $c_max);\r
 \r
                $i = 0; // clue index\r
@@ -1148,9 +1152,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
                return $str;\r
        }\r
        function v6_expand_GridBody() {\r
-               $row=NULL;\r
-               $r_max=0;\r
-               $c_max=0;\r
+               $row = NULL;\r
+               $r_max = 0;\r
+               $c_max = 0;\r
                $this->v6_get_jcross_grid($row, $r_max, $c_max);\r
 \r
                $i = 0; // clue index;\r