mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
Reverting Mike C's change in MDL-12016
This commit is contained in:
parent
f46b6587a6
commit
40e7144323
@ -274,7 +274,7 @@ class qformat_default {
|
||||
if ($question->qtype=='category') {
|
||||
if ($this->catfromfile) {
|
||||
// find/create category object
|
||||
$catpath = $question->category['text'][0]['#'];
|
||||
$catpath = $question->category;
|
||||
$newcategory = $this->create_category_path( $catpath, '/');
|
||||
if (!empty($newcategory)) {
|
||||
$this->category = $newcategory;
|
||||
|
Loading…
x
Reference in New Issue
Block a user