]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14103 - remove the call to s() - the string has to already be in html format...
authorscyrma <scyrma>
Mon, 31 Mar 2008 06:53:35 +0000 (06:53 +0000)
committerscyrma <scyrma>
Mon, 31 Mar 2008 06:53:35 +0000 (06:53 +0000)
lib/weblib.php

index b826f25a2e9c3a81daf57c286fd5c41d093c8364..9191b29a29e491d18e553e37041acbec61b9b7d7 100644 (file)
@@ -4226,7 +4226,7 @@ function print_single_button($link, $options, $label='OK', $method='get', $notus
     }
     if ($jsconfirmmessage){
         $jsconfirmmessage = addslashes_js($jsconfirmmessage);
-        $jsconfirmmessage = 'onclick="'.s('return confirm("'.$jsconfirmmessage.'");').'"';
+        $jsconfirmmessage = 'onclick="return confirm(\''. $jsconfirmmessage .'\');" ';
     }
     $output .= '<input type="submit" value="'. s($label) ."\" $tooltip $disabled $jsconfirmmessage/></div></form></div>";