mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-31556_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE
This commit is contained in:
commit
a55688b394
1 changed files with 3 additions and 1 deletions
|
@ -659,7 +659,9 @@ function lesson_process_post_save(&$lesson) {
|
|||
if ($lesson->available) {
|
||||
$event->name = $lesson->name.' ('.get_string('lessonopens', 'lesson').')';
|
||||
calendar_event::create(clone($event));
|
||||
} else if ($lesson->deadline) {
|
||||
}
|
||||
|
||||
if ($lesson->deadline) {
|
||||
$event->name = $lesson->name.' ('.get_string('lessoncloses', 'lesson').')';
|
||||
$event->timestart = $lesson->deadline;
|
||||
$event->eventtype = 'close';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue