MDL-51213 weblib: Allow filter=false option for format_string
And pass this from external_format_string correctly.
This commit is contained in:
@@ -743,6 +743,7 @@ function external_format_string($str, $contextid, $striplinks = true, $options =
|
||||
if (!$settings->get_raw()) {
|
||||
$context = context::instance_by_id($contextid);
|
||||
$options['context'] = $context;
|
||||
$options['filter'] = $settings->get_filter();
|
||||
$str = format_string($str, $striplinks, $options);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user