MDL-51213 weblib: Allow filter=false option for format_string

And pass this from external_format_string correctly.
This commit is contained in:
Damyon Wiese
2015-09-10 12:55:52 +08:00
parent 3676873566
commit 08bda175de
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -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);
}