]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from STABLE
authorthepurpleblob <thepurpleblob>
Tue, 15 Aug 2006 14:39:47 +0000 (14:39 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 15 Aug 2006 14:39:47 +0000 (14:39 +0000)
question/format/gift/format.php

index 6be1cd5ca973981ea5b64146c2f1c7d4360621b3..62af329d682f222ae0af2aec8fc10e3b2cf323ff 100755 (executable)
@@ -209,6 +209,8 @@ class qformat_gift extends qformat_default {
             $question->name = $question->questiontext;
             }
 
+        // ensure name is not longer than 250 characters
+        $question->name = shorten_text( $question->name, 250 );
 
          // determine QUESTION TYPE
         $question->qtype = NULL;