MDL-32471 fixed strict standards in the declaration of send_file() in assignment types
All subtypes declaration should be compatible with that of assignment_base::send_file()
This commit is contained in:
@@ -375,7 +375,7 @@ class assignment_online extends assignment_base {
|
||||
}
|
||||
}
|
||||
|
||||
public function send_file($filearea, $args, $forcedownload, $options) {
|
||||
public function send_file($filearea, $args, $forcedownload, array $options=array()) {
|
||||
global $USER;
|
||||
require_capability('mod/assignment:view', $this->context);
|
||||
|
||||
|
||||
@@ -614,7 +614,7 @@ class assignment_upload extends assignment_base {
|
||||
die;
|
||||
}
|
||||
|
||||
function send_file($filearea, $args, $forcedownload, $options) {
|
||||
function send_file($filearea, $args, $forcedownload, array $options=array()) {
|
||||
global $CFG, $DB, $USER;
|
||||
require_once($CFG->libdir.'/filelib.php');
|
||||
|
||||
|
||||
@@ -300,7 +300,7 @@ class assignment_uploadsingle extends assignment_base {
|
||||
return true;
|
||||
}
|
||||
|
||||
function send_file($filearea, $args, $forcedownload, $options) {
|
||||
function send_file($filearea, $args, $forcedownload, array $options=array()) {
|
||||
global $CFG, $DB, $USER;
|
||||
require_once($CFG->libdir.'/filelib.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user