Skip to content
Permalink
Browse files

Merge branch 'MDL-28705_master' of git://github.com/dmonllao/moodle

  • Loading branch information...
danpoltawski committed Jan 15, 2013
2 parents 2429051 + 7cd5340 commit a85d61e81272a9060fbdefc06c2aadab709ca253
Showing with 2 additions and 7 deletions.
  1. +2 −7 enrol/imsenterprise/tests/imsenterprise_test.php
@@ -276,12 +276,6 @@ protected function set_xml_file($users = false, $courses = false) {
if (!empty($courses)) {
foreach ($courses as $course) {
// orgunit tag value is used by moodle as category name.
// If the category does not exists the id is used as name.
if ($categoryname = $DB->get_field('course_categories', 'name', array('id' => $course->category))) {
$categoryname = $course->category;
}
$xmlcontent .= '
<group>
<sourcedid>
@@ -308,10 +302,11 @@ protected function set_xml_file($users = false, $courses = false) {
<full>'.$course->imsfull.'</full>';
}
// orgunit tag value is used by moodle as category name.
$xmlcontent .= '
</description>
<org>
<orgunit>'.$categoryname.'</orgunit>
<orgunit>'.$course->category.'</orgunit>
</org>
</group>';
}

0 comments on commit a85d61e

Please sign in to comment.
You can’t perform that action at this time.