Commit Graph

20 Commits

Author SHA1 Message Date
Marina Glancy 850acb3560 MDL-35768 MDL-36017 Avoid calling format_base::get_course() when not necessary
- If we want to check fields 'numsections' or 'hiddensections' call course_get_format()->get_format_options()
- We still use extended course object in course/edit.php, update_course(), create_course(), and inside course formats
2012-11-05 11:22:06 +08:00
Marina Glancy 92d38668ac MDL-35768 MDL-36017 code style corrections 2012-11-02 13:53:48 +08:00
Marina Glancy b5cf83f080 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
2012-11-02 10:56:19 +08:00
Frederic Massart bf006d2c15 MDL-34455 Libraries: Replaced deprecated get_context_instance() 2012-07-23 14:33:02 +08:00
Sam Hemelryk 91d284c145 MDL-29186 multilang Reviewed the uses of course fullname and ensured things were being formatted consistently 2011-09-08 09:38:46 +12:00
Petr Skoda 61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +00:00
Petr Skoda 20207b827a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:57:00 +00:00
Petr Skoda f578af59fc MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:57:00 +00:00
nicolasconnault 73d6f52f6a MDL-19787 Converted all print_footer() calls 2009-08-06 14:12:46 +00:00
nicolasconnault 2fff8846f2 MDL-19787 Migrated calls to print_heading 2009-08-06 08:17:12 +00:00
skodak 1d8bf5f0ab MDL-14679 towards /admin conversion 2008-05-30 21:36:57 +00:00
skodak 1ae083e424 MDL-9647 simplify dealing with headers/footers in admin sections 2007-04-30 17:08:34 +00:00
moodler 6ba65fa08d Merged Nicolas' changes from MDL-8582 into HEAD. 2007-02-28 06:25:22 +00:00
martinlanghoff abb6fc0dda Fixing 1.5->1.7 upgrade bug (get_courses was used unnecessarily in upgrade process, and relies on roles)
Author: Andrew Walbran <andrew.walbran@catalyst.net.nz>
2007-02-28 00:06:59 +00:00
skodak c9a49ceab4 major cleanup of unsupported and legacy external pages in admin/; created new hidden unsupported category; some other minor fixes and changes 2006-09-25 20:22:55 +00:00
toyomoyo 41d7209c7f some (mainly admin realated) capabilities 2006-08-25 08:27:27 +00:00
skodak 636c2c08d9 parameter cleaup - round 3 2006-03-06 14:25:26 +00:00
mjollnir_ d86ab8c672 Merged from MOODLE_15_STABLE: Backticks are NOT ALLOWED in postgres! 2005-08-23 06:46:50 +00:00
ikawhero 0acfda862b Merged from stable.
Don't run the cleanup code if we are upgrading from a version that does
not already have an assignment type field. Bug 3801.
2005-07-23 10:53:25 +00:00
moodler 8bd9d5fe2e Fixes database errors from faulty Journal to Online Assignment upgrade code
from 1.4 to 1.5.1
Script can be run at any time.
(SE)
2005-07-21 10:28:30 +00:00