mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-7861 fixed regression caused by one of previous commit related to print_single_button() and friends - old & handling restored, thanks Eloy for spotting the problem :-)
This commit is contained in:
parent
85bb13e776
commit
2463ef818f
@ -2901,9 +2901,10 @@ function print_box_end($return=false) {
|
||||
*/
|
||||
function print_single_button($link, $options, $label='OK', $method='get', $target='_self', $return=false) {
|
||||
$output = '';
|
||||
$link = str_replace('"', '"', $link); //basic XSS protection
|
||||
$output .= '<div class="singlebutton">';
|
||||
// taking target out, will need to add later target="'.$target.'"
|
||||
$output .= '<form action="'. s($link) .'" method="'. $method .'">';
|
||||
$output .= '<form action="'. $link .'" method="'. $method .'">';
|
||||
$output .= '<fieldset class="invisiblefieldset">';
|
||||
if ($options) {
|
||||
foreach ($options as $name => $value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user