Merge branch 'MDL-28132' of git://github.com/timhunt/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 30 Jun 2011 23:37:43 +0000 (01:37 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 30 Jun 2011 23:37:43 +0000 (01:37 +0200)
question/type/random/questiontype.php

index 95bb810..836e88a 100644 (file)
@@ -139,7 +139,7 @@ class qtype_random extends question_type {
         } else {
             $string = 'randomqname';
         }
-        return get_string($string, 'qtype_random', $category->name);
+        return get_string($string, 'qtype_random', shorten_text($category->name, 100));
     }
 
     protected function set_selected_question_name($question, $randomname) {