Permalink
Browse files

Reverting Mike C's change in MDL-12016

  • Loading branch information...
1 parent 5580a59 commit 9deccd7a44eb9540b21ff3dd6da6f06f0e667183 thepurpleblob committed Jan 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/format.php
View
2 question/format.php
@@ -229,7 +229,7 @@ function importprocess() {
if ($question->qtype=='category') {
if ($this->catfromfile) {
// find/create category object
- $catpath = $question->category['text'][0]['#'];
+ $catpath = $question->category;
$newcategory = create_category_path( $catpath, '/', $this->course->id );
if (!empty($newcategory)) {
$this->category = $newcategory;

0 comments on commit 9deccd7

Please sign in to comment.