Commit graph

4160 commits

Author SHA1 Message Date
Marina Glancy
45f93db912 MDL-35260 Course formats may have settings, be enabled, disabled and uninstalled 2012-11-05 11:46:34 +08:00
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
Jerome Mouneyrac
489987af77 MDL-35998 move mobile under web services + leave enable mobile under manage web service too 2012-10-31 17:10:42 +08:00
Jerome Mouneyrac
33af788210 MDL-35998 New mobile menu: with CSS url + existing enable mobile web services 2012-10-31 14:25:30 +08:00
Dan Poltawski
0caa0c869b Merge branch 'MDL-4655-master' of git://github.com/FMCorz/moodle 2012-10-30 11:58:34 +08:00
Frederic Massart
3b7bfbb5b8 MDL-4655 course: Number of courses with summaries to display is configurable 2012-10-18 11:07:17 +08:00
Dan Poltawski
4b3a647cfb Merge branch 'wip-mdl-30691' of git://github.com/rajeshtaneja/moodle 2012-10-16 16:27:37 +08:00
Dan Poltawski
ac088b1c21 Merge branch 'w42_MDL-35904_m24_mainadmin' of git://github.com/skodak/moodle 2012-10-16 14:50:30 +08:00
Sam Hemelryk
8422094d91 Merge branch 'MDL-35198' of git://github.com/mouneyrac/moodle 2012-10-16 11:23:24 +08:00
Sam Hemelryk
58e033193f Merge branch 'MDL-32148-master' of git://github.com/StudiUM/moodle 2012-10-16 11:16:33 +08:00
Dan Poltawski
f186ad1f90 Merge branch 'wip-MDL-35339-master' of git://github.com/marinaglancy/moodle 2012-10-15 17:19:44 +08:00
Marina Glancy
38b19bbca1 MDL-35339 call rebuild_course_cache() always (and only) after changing course modules or sections 2012-10-15 14:08:14 +08:00
Marina Glancy
722e6ba947 MDL-35339 Deprecate add_mod_to_section(), create new function course_add_cm_to_section()
Function add_mod_to_section() has very confusing arguments when object  looks like record from
table course_modules but field ->section refers to relative section number (course_sections.section).
In table course_modules the field section refers to course_sections.id.
Also add_mod_to_section() does not update table course_modules and does not call rebuild_course_cache()
which developer can forget to do afterwards.

- Added function course_add_cm_to_section()
- In the core code add_mod_to_section() is replaced with course_add_cm_to_section()
- Function add_mod_to_section() is deprecated
2012-10-15 14:08:13 +08:00
Dan Poltawski
6bea7da1ab Merge branch 'wip-MDL-35661-master' of git://github.com/marinaglancy/moodle 2012-10-15 13:31:10 +08:00
Eloy Lafuente (stronk7)
990853afbe Merge branch 'wip-MDL-25290-m24-compact' of git://github.com/samhemelryk/moodle 2012-10-14 23:32:40 +02:00
Petr Škoda
550790153a MDL-35904 send notifications from main admin and improve coding style 2012-10-13 09:52:45 +02:00
Eloy Lafuente (stronk7)
dbaf9d448d Merge branch 'wip-MDL-22955-m24' of git://github.com/samhemelryk/moodle 2012-10-10 00:35:11 +02:00
Rajesh Taneja
19d69cc9a6 MDL-30691 Adminstration: Added css to break long word in filter table 2012-10-09 10:00:02 +08:00
Marina Glancy
2567584d5e MDL-35661 Loading of plugin settings for webservices plugins (plugininfo_webservice)
- webservicesettings must be only created if user has site:config capability, otherwise the nodes are added to non-existing parent
2012-10-09 09:58:00 +08:00
Marina Glancy
c517dd68f7 MDL-35661 Loading of plugin settings for repositories plugins (plugininfo_repository) 2012-10-09 09:57:59 +08:00
Marina Glancy
eb30df1e5f MDL-35661 Removed function plugininfo_local::get_settings_url() introduced in MDL-35442
Local plugins do not create settings node with particular name, there is no standard way to
return the settings url
2012-10-09 09:57:59 +08:00
Marina Glancy
e8d169320b MDL-35661 Loading of plugin settings for message processors (plugininfo_message) 2012-10-09 09:57:59 +08:00
Marina Glancy
d98305bdda MDL-35661 Loading of plugin settings for plagiarism plugins (plugininfo_plagiarism) 2012-10-09 09:57:58 +08:00
Marina Glancy
66f3684a38 MDL-35661 Loading of plugin settings for qtype plugins (plugininfo_qtype) 2012-10-09 09:57:58 +08:00
Marina Glancy
1de1a6665c MDL-35661 Loading of plugin settings for filters plugins (plugininfo_filter) 2012-10-09 09:57:58 +08:00
Marina Glancy
087001ee42 MDL-35661 Loading of plugin settings for editor plugins (plugininfo_editor) 2012-10-09 09:57:57 +08:00
Marina Glancy
79c5c3fa96 MDL-35661 Loading of plugin settings for enrol plugins (plugininfo_enrol) 2012-10-09 09:57:57 +08:00
Marina Glancy
cbe9f609f8 MDL-35661 Loading of plugin settings for auth plugins (plugininfo_auth) 2012-10-09 09:57:53 +08:00
Marina Glancy
870d42809a MDL-35661 Loading of plugin settings for blocks (plugininfo_block) 2012-10-09 09:56:46 +08:00
Marina Glancy
fde6f79fae MDL-35661 Loading of plugin settings for modules (plugininfo_mod) 2012-10-09 09:56:42 +08:00
Marina Glancy
5cdb1893a9 MDL-35661 Add functionality to plugininfo_base to load settings and check the settings url
- added plugin_manager and plugininfo_base::load_settings(), get_settings_section_name()
2012-10-09 09:44:59 +08:00
Eloy Lafuente (stronk7)
da6675d633 Merge branch 'wip-MDL-26348-m24' of git://github.com/samhemelryk/moodle 2012-10-09 01:38:01 +02:00
Eloy Lafuente (stronk7)
65095dad88 Merge branch 'wip-mdl-35397' of git://github.com/rajeshtaneja/moodle 2012-10-09 00:39:05 +02:00
Eloy Lafuente (stronk7)
930ce3f3cd Merge branch 'wip-mdl-35047' of git://github.com/rajeshtaneja/moodle 2012-10-08 23:56:53 +02:00
Eloy Lafuente (stronk7)
f374702e75 Merge branch 'w41_MDL-35691_m24_intsizes' of git://github.com/skodak/moodle 2012-10-08 23:51:26 +02:00
Sam Hemelryk
6fec18203b MDL-25290 cache: Renamed plugin from cache => cachestore 2012-10-08 09:53:51 +13:00
Sam Hemelryk
f23fbfd849 MDL-25290 cache: Fixed up redirect loop with admin settings for cache stores 2012-10-08 09:53:51 +13:00
Sam Hemelryk
d6a1f63bdd MDL-25290 cache: Cache API integration with core 2012-10-08 09:53:50 +13:00
Sam Hemelryk
6a3b5e896d MDL-26348 tool_customlang: Fixed up SQL causing issues in Oracle 2012-10-08 09:22:34 +13:00
Sam Hemelryk
436dbeecda MDL-22955 theme: Added ability to use SVG format for icons 2012-10-08 09:16:14 +13:00
Petr Škoda
960b65290a MDL-35739 show langs on separate lines in CLI installer
This fixes column width issues and compatibility with RTL languages.
2012-10-07 21:03:44 +02:00
Petr Škoda
2b7fa4c175 MDL-35691 use bigint checker for all integers 2012-10-06 10:07:49 +02:00
Petr Škoda
3c17c85ae6 MDL-35691 fix max length calculation in pg, mysql and our bigint checker 2012-10-06 10:07:48 +02:00
Jean-Philippe Gaudreau
914442ae29 MDL-32148 Backup: Adding config settings for skipping courses in automated backups 2012-10-05 10:10:36 -04:00
Tim Hunt
d0577078fa MDL-34657 system admins: main admin mis-identified in the UI. 2012-10-04 11:44:50 +01:00
Rajesh Taneja
e71696e012 MDL-35047 tool_xmldb: Added missing strings for xmldb 2012-10-02 14:19:09 +08:00
Rajesh Taneja
956082f18d MDL-35397 Administration: changed link for 'many other contributors'
Previously 'many other contributors' was pointing to http://docs.moodle.org/dev/Credits
now, it will point to http://moodle.org/dev.
2012-10-02 13:41:13 +08:00
Eloy Lafuente (stronk7)
1203b6ea05 Merge branch 'MDL-35669-master-2' of git://github.com/micaherne/moodle 2012-10-01 23:44:07 +02:00