MDL-37030 Assignment: Fix error on download all submissions.

When group submissions and blind marking are enabled, an error is thrown
when a teacher trys to download all submissions in a zip. The fix is to
move the url rewriting from the plugin to the assign class so it is
done in a standard way by all modules. The rewriting is done to make images
in a text editor field resolve correctly.
This commit is contained in:
Damyon Wiese
2013-01-15 10:40:43 +13:00
committed by Sam Hemelryk
parent ee8044f2e6
commit f6d09222a2
5 changed files with 44 additions and 22 deletions
+3 -1
View File
@@ -415,9 +415,11 @@ abstract class assign_plugin {
*
* @param stdClass $submissionorgrade assign_submission or assign_grade
* For submission plugins this is the submission data, for feedback plugins it is the grade data
* @param stdClass $user The user record for the current submission.
* Needed for url rewriting if this is a group submission.
* @return array - return an array of files indexed by filename
*/
public function get_files(stdClass $submissionorgrade) {
public function get_files(stdClass $submissionorgrade, stdClass $user) {
return array();
}