Skip to content

Commit

Permalink
MDL-51132 course: add tag require
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Sep 8, 2015
1 parent fa5a3cd commit 3300120
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions course/lib.php
Expand Up @@ -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);
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 3300120

Please sign in to comment.