mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Numsections on site should be zero for people upgrading from 1.3.x -> 1.4
This commit is contained in:
parent
cd35e7c424
commit
a7e0783741
2 changed files with 2 additions and 0 deletions
|
@ -763,6 +763,7 @@ function main_upgrade($oldversion=0) {
|
|||
|
||||
if ($oldversion < 2004053000) { /// set defaults for site course
|
||||
$site = get_site();
|
||||
set_field('course', 'numsections', 0, 'id', $site->id);
|
||||
set_field('course', 'groupmodeforce', 1, 'id', $site->id);
|
||||
set_field('course', 'teacher', get_string('administrator'), 'id', $site->id);
|
||||
set_field('course', 'teachers', get_string('administrators'), 'id', $site->id);
|
||||
|
|
|
@ -505,6 +505,7 @@ function main_upgrade($oldversion=0) {
|
|||
|
||||
if ($oldversion < 2004053000) { /// set defaults for site course
|
||||
$site = get_site();
|
||||
set_field('course', 'numsections', 0, 'id', $site->id);
|
||||
set_field('course', 'groupmodeforce', 1, 'id', $site->id);
|
||||
set_field('course', 'teacher', get_string('administrator'), 'id', $site->id);
|
||||
set_field('course', 'teachers', get_string('administrators'), 'id', $site->id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue