MDL-50851 course: use new tag API

This commit is contained in:
Marina Glancy
2016-01-10 15:25:47 +08:00
parent abea2c5deb
commit 74fa9f76dc
11 changed files with 117 additions and 60 deletions
+1 -4
View File
@@ -123,10 +123,7 @@ if (!empty($course)) {
}
// Populate course tags.
if (!empty($CFG->usetags)) {
include_once($CFG->dirroot.'/tag/lib.php');
$course->tags = tag_get_tags_array('course', $course->id);
}
$course->tags = core_tag_tag::get_item_tags_array('core', 'course', $course->id);
} else {
// Editor should respect category context if course context is not set.