Reverting Mike C's change in MDL-12016
This commit is contained in:
+1
-1
@@ -229,7 +229,7 @@ class qformat_default {
|
||||
if ($question->qtype=='category') {
|
||||
if ($this->catfromfile) {
|
||||
// find/create category object
|
||||
$catpath = $question->category['text'][0]['#'];
|
||||
$catpath = $question->category;
|
||||
$newcategory = create_category_path( $catpath, '/', $this->course->id );
|
||||
if (!empty($newcategory)) {
|
||||
$this->category = $newcategory;
|
||||
|
||||
Reference in New Issue
Block a user