2004-02-16 05:41:13 +00:00
|
|
|
<?PHP
|
|
|
|
|
|
|
|
function lesson_upgrade($oldversion) {
|
|
|
|
/// This function does anything necessary to upgrade
|
|
|
|
/// older versions to match current functionality
|
|
|
|
|
|
|
|
global $CFG;
|
|
|
|
|
2004-02-16 12:20:40 +00:00
|
|
|
if ($oldversion < 2004021600) {
|
2004-02-16 05:41:13 +00:00
|
|
|
|
2004-02-16 12:20:40 +00:00
|
|
|
delete_records("log_display", "module", "lesson");
|
|
|
|
|
|
|
|
modify_database ("", "INSERT INTO prefix_log_display VALUES ('lesson', 'start', 'lesson', 'name');");
|
|
|
|
modify_database ("", "INSERT INTO prefix_log_display VALUES ('lesson', 'end', 'lesson', 'name');");
|
|
|
|
modify_database ("", "INSERT INTO prefix_log_display VALUES ('lesson', 'view', 'lesson_pages', 'title');");
|
2004-02-16 05:41:13 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|