projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce2df28
)
MDL-12016 Category text not being sent to 'create_category_path'.
author
mchurch
<mchurch>
Thu, 15 Nov 2007 14:05:17 +0000
(14:05 +0000)
committer
mchurch
<mchurch>
Thu, 15 Nov 2007 14:05:17 +0000
(14:05 +0000)
question/format.php
patch
|
blob
|
history
diff --git
a/question/format.php
b/question/format.php
index 091897dcd9135932dc3d76018547b7fa72ef916a..c863dfa54e145fe7cf057b41e47bb178dd8148f3 100644
(file)
--- a/
question/format.php
+++ b/
question/format.php
@@
-257,7
+257,7
@@
class qformat_default {
if ($question->qtype=='category') {
if ($this->catfromfile) {
// find/create category object
- $catpath = $question->category;
+ $catpath = $question->category
['text'][0]['#']
;
$newcategory = $this->create_category_path( $catpath, '/');
if (!empty($newcategory)) {
$this->category = $newcategory;