projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a3bdfa
)
MDL-5327 - When making up a default question name from the question text, strip any...
author
tjhunt
<tjhunt>
Thu, 27 Sep 2007 06:54:17 +0000
(06:54 +0000)
committer
tjhunt
<tjhunt>
Thu, 27 Sep 2007 06:54:17 +0000
(06:54 +0000)
question/type/questiontype.php
patch
|
blob
|
history
diff --git
a/question/type/questiontype.php
b/question/type/questiontype.php
index 15c7c4e3aa3adc57272754a78bd830f418bcb8cf..b5f46ae3793d3c2af36ab2345471adbd5748a84c 100644
(file)
--- a/
question/type/questiontype.php
+++ b/
question/type/questiontype.php
@@
-255,7
+255,7
@@
class default_questiontype {
}
if (empty($question->name)) {
- $question->name = shorten_text(
$question->questiontext
, 15);
+ $question->name = shorten_text(
strip_tags($question->questiontext)
, 15);
if (empty($question->name)) {
$question->name = '-';
}