From 5f5b443ea8a2a635d37f199d34dafbae554eb4f7 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 13 Mar 2009 09:19:01 +0000 Subject: [PATCH] gift import: MDL-18390 better way to get the question type name. --- lib/weblib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 95f400479c..dbfdc9003f 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4305,12 +4305,15 @@ function _print_custom_corners_end($idbase) { * @return string / nothing depending on the $return paramter. */ function print_single_button($link, $options, $label='OK', $method='get', $notusedanymore='', - $return=false, $tooltip='', $disabled = false, $jsconfirmmessage='') { + $return=false, $tooltip='', $disabled = false, $jsconfirmmessage='', $formid = '') { $output = ''; + if ($formid) { + $formid = ' id="' . s($formid) . '"'; + } $link = str_replace('"', '"', $link); //basic XSS protection $output .= '
'; // taking target out, will need to add later target="'.$target.'" - $output .= '
'; + $output .= ''; $output .= '
'; if ($options) { foreach ($options as $name => $value) { -- 2.39.5