Skip to content

Commit

Permalink
[multienrol]More changes to the internal->manual transition
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlanghoff committed Mar 9, 2006
1 parent 6a2c524 commit e90737c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/db/mysql.php
Expand Up @@ -1673,6 +1673,11 @@ function main_upgrade($oldversion=0) {
execute_sql("UPDATE {$CFG->prefix}user_teachers SET enrol='manual' WHERE enrol=''");
}

if ($oldversion < 2005103101) { // rename internal to manual
set_config('enrol_plugins_enabled', str_replace('internal', 'manual', $CFG->enrol_plugins_enabled));
set_config('enrol', str_replace('internal', 'manual', $CFG->enrol));
}

return $result;
}

Expand Down
5 changes: 5 additions & 0 deletions lib/db/postgres7.php
Expand Up @@ -1416,6 +1416,11 @@ function main_upgrade($oldversion=0) {
execute_sql("UPDATE {$CFG->prefix}user_teachers SET enrol='manual' WHERE enrol=''");
}

if ($oldversion < 2005103101) { // rename internal to manual
set_config('enrol_plugins_enabled', str_replace('internal', 'manual', $CFG->enrol_plugins_enabled));
set_config('enrol', str_replace('internal', 'manual', $CFG->enrol));
}

return $result;
}

Expand Down

0 comments on commit e90737c

Please sign in to comment.