mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
Merge branch 'MDL-71837-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE
This commit is contained in:
commit
c54bf071a1
1 changed files with 3 additions and 1 deletions
|
@ -138,7 +138,9 @@ $formdata = array(
|
|||
// If today it's weekend but tomorrow it isn't, do NOT give the "this week" option.
|
||||
'allowthisweek' => !(($weekend & (1 << $now['wday'])) && !($weekend & (1 << (($now['wday'] + 1) % $numberofdaysinweek))))
|
||||
);
|
||||
$exportform = new core_calendar_export_form(null, $formdata);
|
||||
|
||||
// Disable submit protection so that the submit buttons continue working after being pressed.
|
||||
$exportform = new core_calendar_export_form(null, $formdata, 'POST', '', ['data-double-submit-protection' => 'off']);
|
||||
$calendarurl = '';
|
||||
if ($data = $exportform->get_data()) {
|
||||
$params = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue