Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added simplified aliases for answer types, as proposed by Thomas Robb…

…. It is now possible to use these aliases:

SHORTANSWER = SA = MW ;
NUMERICAL = NM ;
MULTICHOICE = MC
  • Loading branch information...
commit b63519ebda1cac0aab80f4524316345d1f97b718 1 parent 565e970
kaipe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/quiz/format/multianswer.php
2  mod/quiz/format/multianswer.php
View
@@ -46,7 +46,7 @@
// Remaining ANSWER regexes
define("ANSWER_TYPE_DEF_REGEX",
- '(NUMERICAL)|(MULTICHOICE)|(SHORTANSWER)');
+ '(NUMERICAL|NM)|(MULTICHOICE|MC)|(SHORTANSWER|SA|MW)');
define("ANSWER_START_REGEX",
'\{([0-9]*):(' . ANSWER_TYPE_DEF_REGEX . '):');
Please sign in to comment.
Something went wrong with that request. Please try again.