MDL-12016 Category text not being sent to 'create_category_path'.

This commit is contained in:
mchurch 2007-11-15 14:05:17 +00:00
parent ce2df2884a
commit 488eaca44a

View file

@ -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;