moodle.git
7 years agoMerge branch 'w41_MDL-42047_m26_cohortdel' of https://github.com/skodak/moodle
Damyon Wiese [Wed, 9 Oct 2013 06:42:23 +0000 (14:42 +0800)]
Merge branch 'w41_MDL-42047_m26_cohortdel' of https://github.com/skodak/moodle

7 years agoMerge branch 'MDL-41659_master' of https://github.com/totara/openbadges
Damyon Wiese [Wed, 9 Oct 2013 05:30:40 +0000 (13:30 +0800)]
Merge branch 'MDL-41659_master' of https://github.com/totara/openbadges

7 years agoMerge branch 'wip-MDL-41967-master' of git://github.com/abgreeve/moodle
Damyon Wiese [Wed, 9 Oct 2013 04:46:14 +0000 (12:46 +0800)]
Merge branch 'wip-MDL-41967-master' of git://github.com/abgreeve/moodle

7 years agoMerge branch 'wip-MDL-40844-master' of git://github.com/abgreeve/moodle
Damyon Wiese [Wed, 9 Oct 2013 04:09:10 +0000 (12:09 +0800)]
Merge branch 'wip-MDL-40844-master' of git://github.com/abgreeve/moodle

7 years agoMerge branch 'MDL-41347-master' of git://github.com/FMCorz/moodle
Damyon Wiese [Wed, 9 Oct 2013 04:03:54 +0000 (12:03 +0800)]
Merge branch 'MDL-41347-master' of git://github.com/FMCorz/moodle

7 years agoMerge branch 'wip-MDL-42098-master' of git://github.com/abgreeve/moodle
Damyon Wiese [Wed, 9 Oct 2013 03:48:14 +0000 (11:48 +0800)]
Merge branch 'wip-MDL-42098-master' of git://github.com/abgreeve/moodle

7 years agoMerge branch 'MDL-40046-master' of git://github.com/ankitagarwal/moodle
Sam Hemelryk [Wed, 9 Oct 2013 03:25:22 +0000 (16:25 +1300)]
Merge branch 'MDL-40046-master' of git://github.com/ankitagarwal/moodle

7 years agoMDL-40046 events: Use correct variable for page instance id
Ankit Agarwal [Wed, 9 Oct 2013 03:20:32 +0000 (11:20 +0800)]
MDL-40046 events: Use correct variable for page instance id

7 years agoMerge branch 'MDL-41230-master' of git://github.com/FMCorz/moodle
Dan Poltawski [Wed, 9 Oct 2013 03:16:34 +0000 (11:16 +0800)]
Merge branch 'MDL-41230-master' of git://github.com/FMCorz/moodle

7 years agoMerge branch 'wip-MDL-42016-master' of git://github.com/marinaglancy/moodle
Sam Hemelryk [Wed, 9 Oct 2013 02:57:30 +0000 (15:57 +1300)]
Merge branch 'wip-MDL-42016-master' of git://github.com/marinaglancy/moodle

Conflicts:
lib/db/install.xml
lib/db/upgrade.php
version.php

7 years agoMerge branch 'wip-MDL-42089-master' of git://github.com/abgreeve/moodle
Dan Poltawski [Wed, 9 Oct 2013 02:54:24 +0000 (10:54 +0800)]
Merge branch 'wip-MDL-42089-master' of git://github.com/abgreeve/moodle

7 years agoMerge branch 'mdl41908-master' of https://github.com/tlock/moodle
Dan Poltawski [Wed, 9 Oct 2013 02:27:07 +0000 (10:27 +0800)]
Merge branch 'mdl41908-master' of https://github.com/tlock/moodle

7 years agoMerge branch 'MDL-29663_alt' of https://github.com/merrill-oakland/moodle
Damyon Wiese [Wed, 9 Oct 2013 01:39:09 +0000 (09:39 +0800)]
Merge branch 'MDL-29663_alt' of https://github.com/merrill-oakland/moodle

7 years agoMerge branch 'MDL-42026-master' of git://github.com/damyon/moodle
Eloy Lafuente (stronk7) [Tue, 8 Oct 2013 23:48:45 +0000 (01:48 +0200)]
Merge branch 'MDL-42026-master' of git://github.com/damyon/moodle

Conflicts:
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js

7 years agoMerge branch 'MDL-41940' of https://github.com/merrill-oakland/moodle
Sam Hemelryk [Tue, 8 Oct 2013 23:41:36 +0000 (12:41 +1300)]
Merge branch 'MDL-41940' of https://github.com/merrill-oakland/moodle

7 years agoMerge branch 'MDL-41761-master' of git://github.com/jamiepratt/moodle
Eloy Lafuente (stronk7) [Tue, 8 Oct 2013 23:29:17 +0000 (01:29 +0200)]
Merge branch 'MDL-41761-master' of git://github.com/jamiepratt/moodle

7 years agoMerge branch 'wip-MDL-42068-m26-showshortnamefilepicker' of git://github.com/henesnar...
Eloy Lafuente (stronk7) [Tue, 8 Oct 2013 23:26:52 +0000 (01:26 +0200)]
Merge branch 'wip-MDL-42068-m26-showshortnamefilepicker' of git://github.com/henesnarfel/moodle

7 years agoMDL-40493 question: set real $USER before testing question walktrough
Petr Škoda [Tue, 8 Oct 2013 21:21:34 +0000 (23:21 +0200)]
MDL-40493 question: set real $USER before testing question walktrough

7 years agoMDL-41792 fix calendar test typos
Petr Škoda [Tue, 8 Oct 2013 21:08:27 +0000 (23:08 +0200)]
MDL-41792 fix calendar test typos

7 years agoMerge branch 'w41_MDL-16073_m26_extdbtest_i' of https://github.com/skodak/moodle
Sam Hemelryk [Tue, 8 Oct 2013 20:23:53 +0000 (09:23 +1300)]
Merge branch 'w41_MDL-16073_m26_extdbtest_i' of https://github.com/skodak/moodle

7 years agoMerge branch 'MDL-41956_master' of https://github.com/totara/openbadges
Sam Hemelryk [Tue, 8 Oct 2013 19:54:46 +0000 (08:54 +1300)]
Merge branch 'MDL-41956_master' of https://github.com/totara/openbadges

7 years agoMDL-16073 add test for connection to external database for authentication and enrolments
Petr Škoda [Mon, 30 Sep 2013 20:39:21 +0000 (22:39 +0200)]
MDL-16073 add test for connection to external database for authentication and enrolments

7 years agoMerge branch 'MDL-42069' of https://github.com/appalachianstate/moodle
Eloy Lafuente (stronk7) [Tue, 8 Oct 2013 19:25:46 +0000 (21:25 +0200)]
Merge branch 'MDL-42069' of https://github.com/appalachianstate/moodle

7 years agoMerge branch 'wip-MDL-42141-master' of git://github.com/marinaglancy/moodle
Eloy Lafuente (stronk7) [Tue, 8 Oct 2013 19:23:56 +0000 (21:23 +0200)]
Merge branch 'wip-MDL-42141-master' of git://github.com/marinaglancy/moodle

7 years agoMDL-29663 forum: Replace constant FORUM_TRACKING_ON with FORUM_TRACKING_FORCED
Eric Merrill [Tue, 1 Oct 2013 18:55:12 +0000 (14:55 -0400)]
MDL-29663 forum: Replace constant FORUM_TRACKING_ON with FORUM_TRACKING_FORCED

Commit for MDL-29663 that renames the FORUM_TRACKING_ON constant
to FORUM_TRACKING_FORCED to allow easier and more consistant reading.

FORUM_TRACKING_ON retained but marked depreciated.

7 years agoMDL-29663 forum: Option to allow Forced for read tracking.
Eric Merrill [Thu, 26 Sep 2013 14:47:46 +0000 (10:47 -0400)]
MDL-29663 forum: Option to allow Forced for read tracking.

Converts the use of Read Tracking On to Forced. Adds new admin setting
forum_allowforcedreadtracking. If set, Forced will be available when
adding or editing forums. In this state the forced forum overrides the
user preference of off.

With forum_allowforcedreadtracking not set (default) behavior is the
same as now, except forums previously set in the On state are treated
as Optional.

The side effect of forum_allowforcedreadtracking being on, is that users
cannot speed up the loading of course pages with lots of forums by
setting their personal forum read tracking option to off.

7 years agoMerge branch 'w41_MDL-42199_m26_rev' of https://github.com/skodak/moodle
Eloy Lafuente (stronk7) [Tue, 8 Oct 2013 08:53:03 +0000 (10:53 +0200)]
Merge branch 'w41_MDL-42199_m26_rev' of https://github.com/skodak/moodle

7 years agoMerge branch 'MDL-40493-master' of git://github.com/damyon/moodle
Dan Poltawski [Tue, 8 Oct 2013 08:42:17 +0000 (16:42 +0800)]
Merge branch 'MDL-40493-master' of git://github.com/damyon/moodle

Conflicts:
lib/db/install.xml
lib/db/upgrade.php
version.php

7 years agoMerge branch 'MDL-40053-master' of git://github.com/ankitagarwal/moodle
Damyon Wiese [Tue, 8 Oct 2013 08:19:25 +0000 (16:19 +0800)]
Merge branch 'MDL-40053-master' of git://github.com/ankitagarwal/moodle

7 years agoMerge branch 'MDL-41792_master' of https://github.com/markn86/moodle
Damyon Wiese [Tue, 8 Oct 2013 08:03:46 +0000 (16:03 +0800)]
Merge branch 'MDL-41792_master' of https://github.com/markn86/moodle

7 years agoMDL-42199 fix course revision test
Petr Škoda [Tue, 8 Oct 2013 07:57:09 +0000 (09:57 +0200)]
MDL-42199 fix course revision test

7 years agoMerge branch 'MDL-41722-master' of git://github.com/sammarshallou/moodle
Dan Poltawski [Tue, 8 Oct 2013 07:19:09 +0000 (15:19 +0800)]
Merge branch 'MDL-41722-master' of git://github.com/sammarshallou/moodle

7 years agoMDL-40053 events: Replace add_to_log() with new events in core_notes
Ankit Agarwal [Wed, 2 Oct 2013 07:45:55 +0000 (15:45 +0800)]
MDL-40053 events: Replace add_to_log() with new events in core_notes

7 years agoMDL-40053 events: Write unit tests for note events
Ankit Agarwal [Thu, 3 Oct 2013 03:11:11 +0000 (11:11 +0800)]
MDL-40053 events: Write unit tests for note events

7 years agoMDL-40053 events: write events for core_notes
Ankit Agarwal [Wed, 2 Oct 2013 08:47:49 +0000 (16:47 +0800)]
MDL-40053 events: write events for core_notes

Following events were added in this commit :-
core\event\note_created
core\event\note_deleted
core\event\note_updated
core\event\notes_viewed

7 years agoMDL-40053 events: Generator for core_notes
Ankit Agarwal [Wed, 2 Oct 2013 08:19:41 +0000 (16:19 +0800)]
MDL-40053 events: Generator for core_notes

7 years agoMerge branch 'MDL-41520-master-mod_lti-completion-view' of github.com:Trii/moodle
Damyon Wiese [Tue, 8 Oct 2013 06:43:14 +0000 (14:43 +0800)]
Merge branch 'MDL-41520-master-mod_lti-completion-view' of github.com:Trii/moodle

7 years agoMerge branch 'MDL-40060-master' of git://github.com/FMCorz/moodle
Dan Poltawski [Tue, 8 Oct 2013 06:33:27 +0000 (14:33 +0800)]
Merge branch 'MDL-40060-master' of git://github.com/FMCorz/moodle

7 years agoMDL-40060 mod_book: Replace add_to_log with events
Frederic Massart [Tue, 1 Oct 2013 05:48:35 +0000 (13:48 +0800)]
MDL-40060 mod_book: Replace add_to_log with events

7 years agoMerge branch 'MDL-32570-master' of git://github.com/danpoltawski/moodle
Damyon Wiese [Tue, 8 Oct 2013 05:47:49 +0000 (13:47 +0800)]
Merge branch 'MDL-32570-master' of git://github.com/danpoltawski/moodle

7 years agoMerge branch 'MDL-42131-master' of git://github.com/damyon/moodle
Dan Poltawski [Tue, 8 Oct 2013 05:33:25 +0000 (13:33 +0800)]
Merge branch 'MDL-42131-master' of git://github.com/damyon/moodle

7 years agoMerge branch 'MDL-42150-master' of git://github.com/damyon/moodle
Dan Poltawski [Tue, 8 Oct 2013 05:25:12 +0000 (13:25 +0800)]
Merge branch 'MDL-42150-master' of git://github.com/damyon/moodle

7 years agoMerge branch 'MDL-38655' of git://github.com/aolley/moodle
Dan Poltawski [Tue, 8 Oct 2013 05:21:30 +0000 (13:21 +0800)]
Merge branch 'MDL-38655' of git://github.com/aolley/moodle

7 years agoMerge branch 'MDL-42122' of git://github.com/aolley/moodle
Damyon Wiese [Tue, 8 Oct 2013 04:48:10 +0000 (12:48 +0800)]
Merge branch 'MDL-42122' of git://github.com/aolley/moodle

7 years agoMerge branch 'MDL-40962-master' of git://github.com/ankitagarwal/moodle
Damyon Wiese [Tue, 8 Oct 2013 04:45:43 +0000 (12:45 +0800)]
Merge branch 'MDL-40962-master' of git://github.com/ankitagarwal/moodle

7 years agoMerge branch 'MDL-40046-master' of git://github.com/ankitagarwal/moodle
Sam Hemelryk [Tue, 8 Oct 2013 03:04:05 +0000 (16:04 +1300)]
Merge branch 'MDL-40046-master' of git://github.com/ankitagarwal/moodle

7 years agoMDL-23692 login: Revert change to files copyright
Damyon Wiese [Tue, 8 Oct 2013 02:31:56 +0000 (10:31 +0800)]
MDL-23692 login: Revert change to files copyright

7 years agoMerge branch 'passwordreset-2013-10-07-1031Z' of https://github.com/peterbulmer/moodle
Damyon Wiese [Tue, 8 Oct 2013 02:30:57 +0000 (10:30 +0800)]
Merge branch 'passwordreset-2013-10-07-1031Z' of https://github.com/peterbulmer/moodle

Conflicts:
lib/db/install.xml
lib/db/upgrade.php
version.php

7 years agoMerge branch 'MDL-32188' of git://github.com/timhunt/moodle
Sam Hemelryk [Tue, 8 Oct 2013 01:43:36 +0000 (14:43 +1300)]
Merge branch 'MDL-32188' of git://github.com/timhunt/moodle

Conflicts:
lib/db/upgrade.php

7 years agoMDL-41993 Atto: Strip yui ids from generated HTML.
Damyon Wiese [Tue, 1 Oct 2013 04:05:09 +0000 (12:05 +0800)]
MDL-41993 Atto: Strip yui ids from generated HTML.

7 years agoMerge branch 'MDL-25176' of https://github.com/merrill-oakland/moodle
Marina Glancy [Tue, 8 Oct 2013 01:03:15 +0000 (12:03 +1100)]
Merge branch 'MDL-25176' of https://github.com/merrill-oakland/moodle

7 years agoMerge branch 'w41_MDL-37717_m26_enrolwarn' of https://github.com/skodak/moodle
Marina Glancy [Tue, 8 Oct 2013 00:52:39 +0000 (11:52 +1100)]
Merge branch 'w41_MDL-37717_m26_enrolwarn' of https://github.com/skodak/moodle

7 years agoMerge branch 'w41_MDL-42078_m26_uninstallcleanup' of https://github.com/skodak/moodle
Sam Hemelryk [Mon, 7 Oct 2013 22:20:51 +0000 (11:20 +1300)]
Merge branch 'w41_MDL-42078_m26_uninstallcleanup' of https://github.com/skodak/moodle

7 years agoMDL-41197 normalize ascii text conversion
Petr Škoda [Mon, 7 Oct 2013 19:57:07 +0000 (21:57 +0200)]
MDL-41197 normalize ascii text conversion

7 years agoMerge branch 'MDL-42188' of git://github.com/stronk7/moodle
Sam Hemelryk [Mon, 7 Oct 2013 19:52:42 +0000 (08:52 +1300)]
Merge branch 'MDL-42188' of git://github.com/stronk7/moodle

7 years agoMerge branch 'MDL-41215-master' of git://github.com/andrewnicols/moodle
Sam Hemelryk [Mon, 7 Oct 2013 19:48:43 +0000 (08:48 +1300)]
Merge branch 'MDL-41215-master' of git://github.com/andrewnicols/moodle

Conflicts:
theme/bootstrapbase/style/moodle.css

7 years agoMDL-42188 shifter: delete some orphaned files
Eloy Lafuente (stronk7) [Mon, 7 Oct 2013 19:44:13 +0000 (21:44 +0200)]
MDL-42188 shifter: delete some orphaned files

7 years agoMerge branch 'MDL-35926_alt_c' of git://github.com/rwijaya/moodle
Sam Hemelryk [Mon, 7 Oct 2013 19:27:46 +0000 (08:27 +1300)]
Merge branch 'MDL-35926_alt_c' of git://github.com/rwijaya/moodle

7 years agoMerge branch 'MDL-41914-weekly' of git://github.com/jleyva/moodle
Eloy Lafuente (stronk7) [Mon, 7 Oct 2013 14:06:32 +0000 (16:06 +0200)]
Merge branch 'MDL-41914-weekly' of git://github.com/jleyva/moodle

7 years agoMDL-42078 multiple uninstall improvements and cleanup
Petr Škoda [Fri, 4 Oct 2013 20:40:44 +0000 (22:40 +0200)]
MDL-42078 multiple uninstall improvements and cleanup

Includes:
* update checker refactored to \core\update\ namespace
* plugininfo classes refactored to \core\plugininfo\ namespace
* plugin_manager renamed to core_plugin_manager
* redirect back to original page after plugin uninstall
* fixed assign subplugin uninstall
* move assign subplugins under the assignment in admin tree
* fixed plugininfo for all question related plugin types
* auth uninstall support
* added missing block dependencies
* added theme uninstall
* subplugin types are following the plugin on plugin overview page
* several performance improvements in plugin manager
* new warnigns when plugininfo are outdated or missing
* multiple fixes and other improvements

7 years agoMDL-23692 forgotpw:adhere to site autocomp setting
Peter Bulmer [Mon, 7 Oct 2013 10:29:29 +0000 (23:29 +1300)]
MDL-23692 forgotpw:adhere to site autocomp setting

7 years agoMDL-31830 course: Remove unused shifter built js files
Damyon Wiese [Mon, 7 Oct 2013 07:58:59 +0000 (15:58 +0800)]
MDL-31830 course: Remove unused shifter built js files

7 years agoMDL-23692 forgotpw: Coding style tidyups.
Peter Bulmer [Mon, 5 Aug 2013 02:14:55 +0000 (14:14 +1200)]
MDL-23692 forgotpw: Coding style tidyups.

7 years agoMerge branch '31830-26' of git://github.com/samhemelryk/moodle
Damyon Wiese [Mon, 7 Oct 2013 07:28:45 +0000 (15:28 +0800)]
Merge branch '31830-26' of git://github.com/samhemelryk/moodle

Conflicts:
theme/bootstrapbase/style/moodle.css

7 years agoMDL-31830 course: fixed up minor points as noted by Damyon's integration review
Sam Hemelryk [Mon, 7 Oct 2013 05:48:52 +0000 (18:48 +1300)]
MDL-31830 course: fixed up minor points as noted by Damyon's integration review

* Fixed typo breaking drag and drop of courses.
* Fixed the ' ' title for the create new button plus two other icons I found as well.
* Adding padding to items displayed in the action menu drop down. base + bootstrapbase.
* Padding adjusted to the same as on the course page. base + bootstrapbase.
* Removed hover icon from categories. base only.
* Fixed categroy typo
* Removed min-width that was being applied to coursename making its clickable area larger than normal.
* The category tree is now presented using aria attributes as per http://www.w3.org/WAI/GL/wiki/Using_ARIA_trees
* Bulk action selectors now use aria-labelledby
* Category course count now given access hidden label.
* Pagination links now have better titles.
* The course action icons now present with role=button

7 years agoMDL-35926 notification dialog: trap tab focus within dialog modal.
rwijaya [Mon, 7 Oct 2013 04:40:16 +0000 (12:40 +0800)]
MDL-35926 notification dialog: trap tab focus within dialog modal.

7 years agoMerge branch 'w41_MDL-42040_m26_shutdown' of https://github.com/skodak/moodle
Sam Hemelryk [Mon, 7 Oct 2013 04:38:25 +0000 (17:38 +1300)]
Merge branch 'w41_MDL-42040_m26_shutdown' of https://github.com/skodak/moodle

7 years agoMDL-31830 course: management behat tests corrected after fixes
Sam Hemelryk [Sun, 6 Oct 2013 20:13:23 +0000 (09:13 +1300)]
MDL-31830 course: management behat tests corrected after fixes

7 years agoMerge branch 'MDL-42013_master' of git://github.com/dmonllao/moodle
Dan Poltawski [Mon, 7 Oct 2013 03:26:37 +0000 (11:26 +0800)]
Merge branch 'MDL-42013_master' of git://github.com/dmonllao/moodle

7 years agoMerge branch 'w41_MDL-41220_m26_pluginlist' of https://github.com/skodak/moodle
Sam Hemelryk [Mon, 7 Oct 2013 02:51:45 +0000 (15:51 +1300)]
Merge branch 'w41_MDL-41220_m26_pluginlist' of https://github.com/skodak/moodle

7 years agoMerge branch 'MDL-42072_master' of https://github.com/totara/openbadges
Sam Hemelryk [Mon, 7 Oct 2013 02:40:48 +0000 (15:40 +1300)]
Merge branch 'MDL-42072_master' of https://github.com/totara/openbadges

Conflicts:
badges/assertion.php

7 years agoMDL-42098 - mod_forum: Update webservice sql query to include all name fields.
Adrian Greeve [Mon, 7 Oct 2013 02:02:44 +0000 (10:02 +0800)]
MDL-42098 - mod_forum: Update webservice sql query to include all name fields.

7 years agoMerge branch 'w41_MDL-41197_m26_convnotices' of https://github.com/skodak/moodle
Sam Hemelryk [Mon, 7 Oct 2013 00:43:08 +0000 (13:43 +1300)]
Merge branch 'w41_MDL-41197_m26_convnotices' of https://github.com/skodak/moodle

7 years agoMerge branch 'MDL-41229-master' of git://github.com/mouneyrac/moodle
Sam Hemelryk [Sun, 6 Oct 2013 23:50:29 +0000 (12:50 +1300)]
Merge branch 'MDL-41229-master' of git://github.com/mouneyrac/moodle

Conflicts:
theme/bootstrapbase/style/moodle.css

7 years agoMDL-31830 course: several management interface improvements
Sam Hemelryk [Thu, 3 Oct 2013 23:59:32 +0000 (12:59 +1300)]
MDL-31830 course: several management interface improvements

* Tidied up course detail permissions so that user is not shown information they couldn't access elsewhere.
* category link dimming now accounts for course creation as an action as well.
* category single select when in courses view mode is now limited to courses user can action in.
* There is now a check at the start of the management page to redirect to course/index.php if the user isn't able to manage in any category.
* Tweaked navigation again, to give the limited users a navbar structure similar to the system cap'd user.
* Cancelling a category delete now takes you back to the category you were viewing.
* Fixed undefined notice
* Improved placement of course request and approval links.
* Several styling tweaks/improvements to the base theme.
* Several styling tweaks/improvements to the bootstrapbase theme.

7 years agoMDL-31830 course: improvements to JS coding style
Sam Hemelryk [Wed, 2 Oct 2013 23:15:34 +0000 (12:15 +1300)]
MDL-31830 course: improvements to JS coding style

7 years agoMDL-31830 course: fixed interface issues with limited user
Sam Hemelryk [Wed, 2 Oct 2013 21:28:58 +0000 (10:28 +1300)]
MDL-31830 course: fixed interface issues with limited user

* Navigation/settings now show best available option.
* Resorting categories works now for limited access user.
* Display of up and down arrows corrected.
* Checkboxes no longer displayed if an action can't be performed.

7 years agoMDL-31830 course: management interface fixes as noted
Sam Hemelryk [Wed, 2 Oct 2013 02:32:09 +0000 (15:32 +1300)]
MDL-31830 course: management interface fixes as noted

* Fixed the highlighing of the default category when no categories have been selected.
* Fixed the bug preventing the action menu for AJAX loaded categories from functioning.
* Repositioned course idnumber infront of course actions.
* Fixed display of moveup on first item and movedown on last item (courses and categories)
* Fixed up resort selected categories string.

7 years agoMDL-31830 course: renamed functions for consistency
Sam Hemelryk [Mon, 30 Sep 2013 20:40:29 +0000 (09:40 +1300)]
MDL-31830 course: renamed functions for consistency

* course_move_by_one => course_change_sortorder_by_one
* course_move_after_course => course_move_after_course
* helper::action_course_move_after_course  => helper::action_course_change_sortorder_after_course
* helper::action_course_moveup     => helper::action_course_change_sortorder_up_one
* helper::action_course_movedown     => helper::action_course_change_sortorder_down_one
* helper::action_course_moveup_by_record   => helper::action_course_change_sortorder_up_one_by_record
* helper::action_course_movedown_by_record => helper::action_course_change_sortorder_down_one_by_record
* helper::action_category_movedown         => helper::action_category_change_sortorder_down_one
* helper::action_category_movedown_by_id   => helper::action_category_change_sortorder_down_one_by_id
* helper::action_category_moveup     => helper::action_category_change_sortorder_up_one
* helper::action_category_moveup_by_id     => helper::action_category_change_sortorder_up_one_by_id
* coursecat::move_by_one             => coursecat::change_sortorder_by_one

7 years agoMDL-31830 course: several small code improvements
Sam Hemelryk [Mon, 30 Sep 2013 20:02:08 +0000 (09:02 +1300)]
MDL-31830 course: several small code improvements

* I can rebase this for you/the integrator before it goes in for sure no probs :)
* Fixed double phpdoc block of course_change_visibility
* Moved permission checks out of course_move_after_course and into helper function.
* Reviewed setType calls for editcategory_form.php.
* Reviewed all uses of can_resort and added more specific methods.
* Fixed method mentioned in exception for resort methods.
* Converted calls to fetch courses to call get_course.
* Exceptions now thrown when trying to move courses and problems arise.
* Fixed unnecessary namespace hinting in core_course_management_renderer.
* Abstracted common logic of can_resort_any and can_change_parent_any.
* Removed check for system level capability from has_manage_capability_on_any.
* Reviewed debugging calls I've introduced.

7 years agoMDL-31830 course: added behat test of category creation
Sam Hemelryk [Mon, 30 Sep 2013 02:31:46 +0000 (15:31 +1300)]
MDL-31830 course: added behat test of category creation

7 years agoMDL-31830 core_course: new course category management interface
Sam Hemelryk [Sun, 29 Sep 2013 20:08:07 +0000 (09:08 +1300)]
MDL-31830 core_course: new course category management interface

* Implemented a new course and category management page.
* Deprecated the old management interface.
* Unit tests to cover the new API and core functions.
* Behat tests to cover the new interface.

7 years agoMDL-42016 repository: Implement new sync method in repositories
Marina Glancy [Fri, 4 Oct 2013 13:26:03 +0000 (23:26 +1000)]
MDL-42016 repository: Implement new sync method in repositories

7 years agoMDL-42016 repository: Simplify API to sync external files
Marina Glancy [Fri, 13 Sep 2013 09:37:26 +0000 (19:37 +1000)]
MDL-42016 repository: Simplify API to sync external files

Too many functions, too different parameters, unnecessary DB queries.
All repositories developed for Moodle 2.3-2.5 will continue to work.

Also get rid of DB field files_reference.lifetime, it is not used by
anybody except repository itself.

7 years agoMDL-42016 files: Properly synchronise internal references
Marina Glancy [Sun, 6 Oct 2013 06:22:36 +0000 (17:22 +1100)]
MDL-42016 files: Properly synchronise internal references

7 years agoMDL-32188 question CBM: use short certainty name in response summaries.
Tim Hunt [Thu, 3 Oct 2013 15:25:39 +0000 (16:25 +0100)]
MDL-32188 question CBM: use short certainty name in response summaries.

7 years agoMDL-32188 question CBM: minimal handling of certainty -1
Tim Hunt [Thu, 3 Oct 2013 15:17:16 +0000 (16:17 +0100)]
MDL-32188 question CBM: minimal handling of certainty -1

Certainty -1 has never been used in standard Moodle, but is
used in Tony-Gardiner Medwin's patches to mean 'No idea' which
we intend to implement: MDL-42077. In the mean time, these changes
avoid errors for people who have used TGM's patches.

7 years agoMDL-41940 files Option to limit legacy course files
Eric Merrill [Tue, 24 Sep 2013 12:35:19 +0000 (08:35 -0400)]
MDL-41940 files Option to limit legacy course files

Adding an option that prevents users from adding new files
or directories to legacy course files. Helps with weaning
users from them.

7 years agoMDL-42068 Filepicker course listing use setting courselistshortname to show shortname...
James Henestofel [Tue, 1 Oct 2013 12:22:08 +0000 (08:22 -0400)]
MDL-42068 Filepicker course listing use setting courselistshortname to show shortname and fullname

7 years agoMDL-32188 question CBM: compute summary stats for CBM behaviours
Tim Hunt [Mon, 30 Sep 2013 15:26:21 +0000 (16:26 +0100)]
MDL-32188 question CBM: compute summary stats for CBM behaviours

We now compute the average CBM score, accuracy, CBM bonus and enhanced
accuracy, both for the entire quiz, and for just the questions answered.

Note that these calculations must work correctly in the presence of
descriptions, ungraded questions, and manually graded questions. For
example, imagine a essay added at the end of the quiz "Summarise what
you learned attempting this exercise." This might have max mark zero or
non-zero. The CBM statistics just ignores questions like that.

7 years agoMDL-32188 question CBM: improve display of the certainty choices
Tim Hunt [Fri, 17 Aug 2012 16:57:10 +0000 (17:57 +0100)]
MDL-32188 question CBM: improve display of the certainty choices

Switch to the neutral C=1, 2, 3 mode. Also add a helpicon, and improve
line-wrapping.

7 years agoMDL-32188 question CBM: alter score handling.
Tim Hunt [Wed, 2 Oct 2013 16:33:14 +0000 (17:33 +0100)]
MDL-32188 question CBM: alter score handling.

We now change so that minfraction is -6 and maxfraction is 3, so getting
the question right a low certainty gives maxmark marks, and you get a
bonus for being more confident (rather than being penalised for being
unconfident). Mathematically it is the same, but the difference is
importnat psychologically.

We also change how partially correct scores are handled.
It is too harsh to penalise a partially correct score with full
certainty by doing a linear interpolation between -6 and +3. Instead,
any partially correct score (e.g. 0.5) becomes that fraction of the
correct score (e.g. 0.5 * 3 = 1.5). Also, any incorrect score is treated
as 0, so if you have a multiple choice question that normally gives a
negative score for a wrong choice, this will now never give a score of
less than -6.

Finally we change how this is displayed to students beside the question.
Rather than saying "Marked out of 1.00", we say "Base mark 1.00", and
then later we say "CBM mark 3.00" (or whatever it is).

7 years agoMDL-32188 question CBM: fix hard-coded numbers -> constants.
Tim Hunt [Wed, 2 Oct 2013 16:15:27 +0000 (17:15 +0100)]
MDL-32188 question CBM: fix hard-coded numbers -> constants.

7 years agoMDL-32188 question CBM: fix typos in comments.
Tim Hunt [Mon, 30 Sep 2013 17:35:09 +0000 (18:35 +0100)]
MDL-32188 question CBM: fix typos in comments.

Also one method name.

7 years agoMDL-32188 question rendering: let behaviours control mark display.
Tim Hunt [Wed, 2 Oct 2013 16:32:41 +0000 (17:32 +0100)]
MDL-32188 question rendering: let behaviours control mark display.

Then use this in the CBM behaviours to change how the question marks are
displayed there.

7 years agoMDL-42105 questions: let attempts have a max fraction > 1.
Tim Hunt [Wed, 2 Oct 2013 13:48:33 +0000 (14:48 +0100)]
MDL-42105 questions: let attempts have a max fraction > 1.

This parallels question_attempt->minfraction, which allows the
fractional mark to go below zere.

This is needed to allow the certainty-base marking behaviours to work
better.

7 years agoMDL-32188 quiz/question: behaviours can add to the review summary.
Tim Hunt [Thu, 16 Aug 2012 13:18:58 +0000 (14:18 +0100)]
MDL-32188 quiz/question: behaviours can add to the review summary.

At the top of the quiz reivew page, there is a table that summarises
infomration about the quiz attempt as a whole. For some question
behaviours, we would like to be able to add additional information to
that summary.

This commit introduces a generic method for the behaviour to provide
summary information about an entire question usage.

7 years agoMDL-37717 warn teachers before disabling or deleting their enrolment method
Petr Škoda [Sat, 28 Sep 2013 15:26:40 +0000 (17:26 +0200)]
MDL-37717 warn teachers before disabling or deleting their enrolment method

7 years agoMDL-41220 fix test_get_plugin_list_with_file
Petr Škoda [Mon, 30 Sep 2013 20:55:51 +0000 (22:55 +0200)]
MDL-41220 fix test_get_plugin_list_with_file

7 years agoMDL-41520 LTI: Does not track page views for completion
Joshua Johnston [Fri, 27 Sep 2013 19:56:13 +0000 (15:56 -0400)]
MDL-41520 LTI: Does not track page views for completion

Add the missing code for completion_info::set_module_viewed() since LTI
says that it offers completion tracking on view