MDL-21240 more migration to html_writer

This commit is contained in:
Petr Skoda
2010-01-18 20:39:47 +00:00
parent 77774f6a83
commit f2ab0d0694
2 changed files with 4 additions and 11 deletions
+2 -1
View File
@@ -2076,7 +2076,8 @@ function file_modify_html_header($text) {
$ufo = '';
if (filter_is_enabled('filter/mediaplugin')) {
// this script is needed by most media filter plugins.
$ufo = ajax_get_link_to_script($CFG->wwwroot . '/lib/ufo.js');
$attributes = array('type'=>'text/javascript', 'src'=>$CFG->httpswwwroot . '/lib/ufo.js');
$ufo = html_writer::tag('script', $attributes, '') . "\n";
}
preg_match('/\<head\>|\<HEAD\>/', $text, $matches);