MDL-47494 gapselect: Quiz editing now works, as does the random question type.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 10 Feb 2011 20:44:47 +0000 (20:44 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 10 Feb 2011 20:50:18 +0000 (20:50 +0000)
However, all this needs more testing.

Also, a bit of a purge of training whitespace and global .

question/type/gapselect/edit_form_base.php

index 26c97a0..a9ea332 100755 (executable)
@@ -27,7 +27,7 @@ class qtype_gapselect_edit_form_base extends question_edit_form {
     private $htmltclosetags = '~<\s*/\s*\w\s*.*?>|<\s*br\s*>~';
 
     /** @var string regex to select text like [[cat]] (including the square brackets). */
-    private $squareBracketsRegex = '/\[\[[^]]*?\]\]/';  
+    private $squareBracketsRegex = '/\[\[[^]]*?\]\]/';
 
     private function get_html_tags($text) {
         $textarray = array();