MDL-21233 finally removed the omitquerystring parameters from the out method because: 1/ the least used parameter should nto be first, 2/ it is colliding with the other two paramters, now we have separate funtion for that instead
This commit is contained in:
@@ -1069,12 +1069,12 @@ class html_select extends labelled_html_component {
|
||||
}
|
||||
|
||||
if (!empty($selected)) {
|
||||
$selectedurl = $baseurl->out(false, array($name => $selected), false);
|
||||
$selectedurl = $baseurl->out(array($name => $selected), false);
|
||||
}
|
||||
|
||||
// Replace real value by formatted URLs
|
||||
foreach ($options as $value => $label) {
|
||||
$options[$baseurl->out(false, array($name => $value), false)] = $label;
|
||||
$options[$baseurl->out(array($name => $value), false)] = $label;
|
||||
unset($options[$value]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user