mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-12172 - Sorry, more fall-out from converting continue buttons to use GET instead of POST. Sometimes, URLs were being passed in with & already repalced by & and we weren't handling that properly. Should now be fixed. Merged from MOODLE_19_STABLE.
This commit is contained in:
parent
b4d7d27cea
commit
71e197598c
@ -3665,13 +3665,13 @@ function print_continue($link, $return=false) {
|
||||
$link = $CFG->wwwroot .'/';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$options = array();
|
||||
$linkparts = parse_url($link);
|
||||
$linkparts = parse_url(str_replace('&', '&', $link));
|
||||
if (isset($linkparts['query'])) {
|
||||
parse_str($linkparts['query'], $options);
|
||||
}
|
||||
|
||||
|
||||
$output .= '<div class="continuebutton">';
|
||||
|
||||
$output .= print_single_button($link, $options, get_string('continue'), 'get', $CFG->framename, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user