]> git.mjollnir.org Git - moodle.git/commitdiff
Reverting Mike C's change in MDL-12016
authorthepurpleblob <thepurpleblob>
Tue, 15 Jan 2008 14:35:59 +0000 (14:35 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 15 Jan 2008 14:35:59 +0000 (14:35 +0000)
question/format.php

index d3d0de2fb7b2b94eb4bdefc9809d5dcfab82cbef..a199e9c877e67cb47806c998d5d47d30288daea0 100644 (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;