MDL-36017 Fields numsections, hiddensections and coursedisplay are now format-specifi...
commitb5cf83f080b18bedf7b68196b7948616c65ffb3e
authorMarina Glancy <marina@moodle.com>
Thu, 11 Oct 2012 07:08:17 +0000 (11 15:08 +0800)
committerMarina Glancy <marina@moodle.com>
Fri, 2 Nov 2012 02:56:19 +0000 (2 10:56 +0800)
treeba2a66a2fe91b2ccc274ed3a6b5b3e94ba63427e
parent7b7d2f4d12bcb193f2a232e5428913721616e790
MDL-36017 Fields numsections, hiddensections and coursedisplay are now format-specific options

- Fields added to format_legacy as default course format options;
- Upgrade script copies fields values from table course to course_format_options;
- Fields removed from table course;
- Fields removed from edit course form;
- Since front-page course has a 'numsections' setting, format_site defines it as it's option;
- Removed accessing those fields in core code unless we know that format supports them and in this
  case instead of $course = $DB->get_record('course'); we use:
  $course = course_get_format($courseorid)->get_course(); This way all format-specific options
  are added to the $course object
24 files changed:
admin/oacleanup.php
backup/moodle2/backup_stepslib.php
blocks/section_links/block_section_links.php
course/changenumsections.php
course/edit_form.php
course/format/formatlegacy.php
course/format/lib.php
course/format/renderer.php
course/format/topics/format.php
course/format/weeks/format.php
course/lib.php
enrol/database/lib.php
enrol/database/tests/sync_test.php
enrol/imsenterprise/lib.php
enrol/ldap/lib.php
index.php
lib/adminlib.php
lib/db/install.php
lib/db/install.xml
lib/db/upgrade.php
lib/filelib.php
lib/navigationlib.php
lib/weblib.php
version.php