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:
Petr Skoda
2010-01-17 09:37:30 +00:00
parent 340d461269
commit eb7880654f
21 changed files with 68 additions and 58 deletions
+2 -2
View File
@@ -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]);
}