MDL-30760 question engine: question summary can be longer than 64k!
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 16 Dec 2011 15:51:39 +0000 (15:51 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 16 Dec 2011 15:56:23 +0000 (15:56 +0000)
commitc83ed025efe946397ad5117e772f9735d2206d88
tree6f4c7b599fb4aac31fa7de6dbca1e465dc349440
parent73c0d464160ed130cded72263597a9ef8cbd2217
MDL-30760 question engine: question summary can be longer than 64k!

1. So we will truncate the question summary to 65000 chars if necessary.

2. Also, fix one minor error in mutlianswer save_question_options.

question_bank::MAX_SUMMARY_LENGTH is not the most logical class to add
the constant to, but it needs to be accessible during upgrade, so I was
lazy and put it there.
question/engine/bank.php
question/engine/datalib.php
question/engine/upgrade/upgradelib.php
question/type/multianswer/questiontype.php