CHanged the default for striplinks in format_string from false to true, as this is likely to be the safest for the kinds of places where such strings get used. MDL-8713

This commit is contained in:
moodler
2007-03-16 03:21:25 +00:00
parent 0f26f875f5
commit e217284df4
+2 -2
View File
@@ -1367,11 +1367,11 @@ function text_format_name( $key ) {
* processed by enabled filters if $CFG->filterall is enabled
*
* @param string $string The string to be filtered.
* @param boolean $striplinks To strip any link in the result text.
* @param boolean $striplinks To strip any link in the result text (Moodle 1.8 default changed from false to true! MDL-8713)
* @param int $courseid Current course as filters can, potentially, use it
* @return string
*/
function format_string ($string, $striplinks = false, $courseid=NULL ) {
function format_string ($string, $striplinks=true, $courseid=NULL ) {
global $CFG, $COURSE;