mirror of
https://github.com/moodle/moodle.git
synced 2025-03-25 01:50:55 +01:00
Merge branch 'MDL-78225-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
db7c650f8c
@ -920,7 +920,10 @@ class single_button implements renderable {
|
||||
}
|
||||
|
||||
// Form parameters.
|
||||
$actionurl = new moodle_url($this->url, ['sesskey' => sesskey()]);
|
||||
$actionurl = new moodle_url($this->url);
|
||||
if ($this->method === 'post') {
|
||||
$actionurl->param('sesskey', sesskey());
|
||||
}
|
||||
$data->params = $actionurl->export_params_for_template();
|
||||
|
||||
// Button actions.
|
||||
@ -1123,7 +1126,10 @@ class single_select implements renderable, templatable {
|
||||
}, array_keys($attributes));
|
||||
|
||||
// Form parameters.
|
||||
$actionurl = new moodle_url($this->url, ['sesskey' => sesskey()]);
|
||||
$actionurl = new moodle_url($this->url);
|
||||
if ($this->method === 'post') {
|
||||
$actionurl->param('sesskey', sesskey());
|
||||
}
|
||||
$data->params = $actionurl->export_params_for_template();
|
||||
|
||||
// Select options.
|
||||
|
Loading…
x
Reference in New Issue
Block a user