diff --git a/admin/cron.php b/admin/cron.php index 6d7608f6ed3..c0c759c403b 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -123,6 +123,8 @@ } flush(); + sync_metacourses(); + } // End of occasional clean-up tasks if (file_exists("$CFG->dataroot/cronextra.php")) { diff --git a/blocks/admin/block_admin.php b/blocks/admin/block_admin.php index 49213c8e3b9..2535fe2db33 100644 --- a/blocks/admin/block_admin.php +++ b/blocks/admin/block_admin.php @@ -103,10 +103,15 @@ class block_admin extends block_base { if (!$course->students) { $course->students = get_string('defaultcoursestudents'); + } + if (!$course->meta_course) { + $this->content->items[]=''.$course->students.'...'; + $this->content->icons[]=''; + } + else { + $this->content->items[]=''.$course->students.'...'; + $this->content->icons[]=''; } - $this->content->items[]=''.$course->students.'...'; - $this->content->icons[]=''; - $this->content->items[]=''.get_string('backup').'...'; $this->content->icons[]=''; diff --git a/course/edit.html b/course/edit.html index 6380029631f..317b5160cbe 100644 --- a/course/edit.html +++ b/course/edit.html @@ -15,6 +15,9 @@ if (!isset($form->enrolperiod)) { $form->enrolperiod = 0; } + if (!isset($form->meta_course)) { + $form->meta_course = 0; + } ?>