@@ -1089,7 +1089,7 @@ function pdfannotator_get_questions($courseid, $context, $questionfilter) {
10891089 }
10901090
10911091 $ question ->content = pdfannotator_get_relativelink ($ question ->content , $ question ->commentid , $ context );
1092- $ question ->content = format_text ($ question ->content , FORMAT_MOODLE , [ ' filter ' => true ] );
1092+ $ question ->content = format_text ($ question ->content , FORMAT_MOODLE );
10931093 $ question ->link = (new moodle_url ('/mod/pdfannotator/view.php ' , array ('id ' => $ question ->cmid ,
10941094 'page ' => $ question ->page , 'annoid ' => $ question ->annoid , 'commid ' => $ question ->commentid )))->out ();
10951095
@@ -1166,7 +1166,7 @@ function pdfannotator_get_posts_by_this_user($courseid, $context) {
11661166 $ params = array ('id ' => $ post ->cmid , 'page ' => $ post ->page , 'annoid ' => $ post ->annotationid , 'commid ' => $ post ->commid );
11671167 $ post ->link = (new moodle_url ('/mod/pdfannotator/view.php ' , $ params ))->out ();
11681168 $ post ->content = pdfannotator_get_relativelink ($ post ->content , $ post ->commid , $ context );
1169- $ post ->content = format_text ($ post ->content , FORMAT_MOODLE , [ ' filter ' => true ] );
1169+ $ post ->content = format_text ($ post ->content , FORMAT_MOODLE );
11701170 }
11711171 return $ posts ;
11721172}
@@ -1324,10 +1324,10 @@ function pdfannotator_get_reports($courseid, $context, $reportfilter = 0) {
13241324 $ report ->link = (new moodle_url ('/mod/pdfannotator/view.php ' ,
13251325 array ('id ' => $ report ->cmid , 'page ' => $ report ->page , 'annoid ' => $ report ->annotationid , 'commid ' => $ report ->commentid )))->out ();
13261326 $ report ->reportedcomment = pdfannotator_get_relativelink ($ report ->reportedcomment , $ report ->commentid , $ context );
1327- $ report ->reportedcomment = format_text ($ report ->reportedcomment , FORMAT_MOODLE , [ ' filter ' => true ] );
1327+ $ report ->reportedcomment = format_text ($ report ->reportedcomment , FORMAT_MOODLE );
13281328 $ questionid = $ DB ->get_record ('pdfannotator_comments ' , ['annotationid ' => $ report ->annotationid , 'isquestion ' => 1 ], 'id ' );
13291329 $ report ->report = pdfannotator_get_relativelink ($ report ->report , $ questionid , $ context );
1330- $ report ->report = format_text ($ report ->report , FORMAT_MOODLE , [ ' filter ' => true ] );
1330+ $ report ->report = format_text ($ report ->report , FORMAT_MOODLE );
13311331 }
13321332 return $ reports ;
13331333}
@@ -1883,7 +1883,7 @@ function pdfannotator_answerstable_add_row($thiscourse, $table, $answer, $cmid,
18831883 $ answer ->answer = pdfannotator_get_relativelink ($ answer ->answer , $ answer ->answerid , $ context );
18841884 $ answer ->answer = format_text ($ answer ->answer , FORMAT_MOODLE , ['filter ' => true ]);
18851885 $ answer ->answeredquestion = pdfannotator_get_relativelink ($ answer ->answeredquestion , $ answer ->questionid , $ context );
1886- $ answer ->answeredquestion = format_text ($ answer ->answeredquestion , FORMAT_MOODLE , [ ' filter ' => true ] );
1886+ $ answer ->answeredquestion = format_text ($ answer ->answeredquestion , FORMAT_MOODLE );
18871887 if (isset ($ answer ->displayquestionhidden )) {
18881888 $ question = "<a class=' " . $ answer ->annoid . " more dimmed' href= $ answer ->questionlink > $ answer ->answeredquestion </a> " ;
18891889 } else {
0 commit comments