From: tjhunt Date: Wed, 14 Jun 2006 15:35:27 +0000 (+0000) Subject: Moved constant definitions out of function, so they are not run repeatedly giving... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0b3461641117fe3f486ac5f82b1c942a76119c79;p=moodle.git Moved constant definitions out of function, so they are not run repeatedly giving lots of warnings. Merged from MOODLE_16_STABLE. --- diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index 24d3b6aa80..752f1c9ab0 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -592,6 +592,57 @@ $QTYPE_MENU['multianswer'] = get_string("multianswer", "quiz"); //// likely to be subject for overriding. ///////////////////////////////////////////////////////////// +// ANSWER_ALTERNATIVE regexes +define("ANSWER_ALTERNATIVE_FRACTION_REGEX", + '=|%(-?[0-9]+)%'); +// for the syntax '(?