From 0b3461641117fe3f486ac5f82b1c942a76119c79 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 14 Jun 2006 15:35:27 +0000 Subject: [PATCH] Moved constant definitions out of function, so they are not run repeatedly giving lots of warnings. Merged from MOODLE_16_STABLE. --- question/type/multianswer/questiontype.php | 103 ++++++++++----------- 1 file changed, 51 insertions(+), 52 deletions(-) diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index 24d3b6aa803..752f1c9ab07 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 '(?