From: thepurpleblob Date: Tue, 15 Jan 2008 14:35:59 +0000 (+0000) Subject: Reverting Mike C's change in MDL-12016 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=40e714432363aa9bdce81dc7af87b1594ab91bf0;p=moodle.git Reverting Mike C's change in MDL-12016 --- diff --git a/question/format.php b/question/format.php index d3d0de2fb7..a199e9c877 100644 --- a/question/format.php +++ b/question/format.php @@ -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;