mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Added event handling to new assignment. Whopos!
This commit is contained in:
parent
a5893b087c
commit
736f191c1d
4 changed files with 60 additions and 4 deletions
|
@ -154,6 +154,11 @@ function assignment_upgrade($oldversion) {
|
|||
table_column('assignment', '', 'preventlate', 'integer', '2', 'unsigned', '0', 'not null', 'resubmit');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005060100) {
|
||||
include_once("$CFG->dirroot/mod/assignment/lib.php");
|
||||
assignment_refresh_events();
|
||||
}
|
||||
|
||||
|
||||
/// These lines ALWAYS need to be here at the end of this file. Don't mess with them. :-)
|
||||
include_once("$CFG->dirroot/mod/assignment/lib.php");
|
||||
|
|
|
@ -152,6 +152,11 @@ function assignment_upgrade($oldversion) {
|
|||
table_column('assignment', '', 'preventlate', 'integer', '2', 'unsigned', '0', 'not null', 'resubmit');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005060100) {
|
||||
include_once("$CFG->dirroot/mod/assignment/lib.php");
|
||||
assignment_refresh_events();
|
||||
}
|
||||
|
||||
|
||||
/// These lines ALWAYS need to be here at the end of this file. Don't mess with them. :-)
|
||||
include_once("$CFG->dirroot/mod/assignment/lib.php");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue