Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ae8ed
)
MDL-28132 truncate very long category names before using them in random question...
author
Tim Hunt
<T.J.Hunt@open.ac.uk>
Thu, 30 Jun 2011 18:34:44 +0000
(19:34 +0100)
committer
Tim Hunt
<T.J.Hunt@open.ac.uk>
Thu, 30 Jun 2011 18:35:35 +0000
(19:35 +0100)
question/type/random/questiontype.php
patch
|
blob
|
blame
|
history
diff --git
a/question/type/random/questiontype.php
b/question/type/random/questiontype.php
index
95bb810
..
836e88a
100644
(file)
--- a/
question/type/random/questiontype.php
+++ b/
question/type/random/questiontype.php
@@
-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) {