Reverting Mike C's change in MDL-12016

This commit is contained in:
thepurpleblob 2008-01-15 14:35:59 +00:00
parent f46b6587a6
commit 40e7144323

View File

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