MDL-30760 question engine: question summary can be longer than 64k!
commit89f09b24542c97ec96aeb82b30c565638fa13241
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 16 Dec 2011 15:51:39 +0000 (16 15:51 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 16 Dec 2011 15:58:09 +0000 (16 15:58 +0000)
tree8ade883c5027773a2330d8a16ad5394a9a35f214
parentf2b2978c26ab56e3e59954e42238aef0f76ed2c8
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