Permalink
Browse files

MDL-32279 filter: fix undefined variable

  • Loading branch information...
danpoltawski committed Jun 15, 2012
1 parent ccd4972 commit b44022782b7254bf89fea67382a8e2bb579d23b4
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/weblib.php
View
@@ -1302,7 +1302,8 @@ function format_string($string, $striplinks = true, $options = NULL) {
$string = replace_ampersands_not_followed_by_entity($string);
if (!empty($CFG->filterall)) {
$string = filter_manager::instance()->filter_string($string, $options['context']);
$filtermanager = filter_manager::instance();
$string = $filtermanager->filter_string($string, $options['context']);
$filtermanager->setup_page_for_filters($PAGE, $options['context']); // Setup global stuff filters may have.
}

0 comments on commit b440227

Please sign in to comment.