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:
skodak 2007-01-22 18:23:14 +00:00
parent 85bb13e776
commit 2463ef818f

View File

@ -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) {