Permalink
Browse files

MDL-51132 course: add tag require

  • Loading branch information...
danpoltawski committed Sep 8, 2015
1 parent fa5a3cd commit 33001202d6856127043f5476dd6c4f64e9f09b9a
Showing with 2 additions and 0 deletions.
  1. +2 −0 course/lib.php
View
@@ -2548,6 +2548,7 @@ function course_overviewfiles_options($course) {
*/
function create_course($data, $editoroptions = NULL) {
global $DB, $CFG;
require_once($CFG->dirroot.'/tag/lib.php');
//check the categoryid - must be given for all new courses
$category = $DB->get_record('course_categories', array('id'=>$data->category), '*', MUST_EXIST);
@@ -2652,6 +2653,7 @@ function create_course($data, $editoroptions = NULL) {
*/
function update_course($data, $editoroptions = NULL) {
global $DB, $CFG;
require_once($CFG->dirroot.'/tag/lib.php');
$data->timemodified = time();

0 comments on commit 3300120

Please sign in to comment.