From ec8f711d066471306654105d1558e361b8a48a83 Mon Sep 17 00:00:00 2001 From: scyrma Date: Mon, 31 Mar 2008 06:52:16 +0000 Subject: [PATCH] MDL-14103 - remove the call to s() - the string has to already be in html format. --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 2a6dfb5e4d5..7d572bd9d17 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4200,7 +4200,7 @@ function print_single_button($link, $options, $label='OK', $method='get', $targe } if ($jsconfirmmessage){ $jsconfirmmessage = addslashes_js($jsconfirmmessage); - $jsconfirmmessage = 'onclick="'.s('return confirm("'.$jsconfirmmessage.'");').'"'; + $jsconfirmmessage = 'onclick="return confirm(\''. $jsconfirmmessage .'\');" '; } $output .= '";