Fixed $title in print_header (merged from stable) (no bug)

This commit is contained in:
moodler
2007-03-02 03:21:04 +00:00
parent 8058aa051b
commit 759b77631c
+1 -3
View File
@@ -2199,8 +2199,8 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
// Clean up the title
$title = strip_tags(format_string($title)); // fix for MDL-8582
$title = str_replace('"', '"', $title);
$title = strip_tags($title);
// Create class and id for this page
@@ -2228,8 +2228,6 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
$bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"';
ob_start();
$title = format_string($title); // fix for MDL-8582
include($CFG->header);
$output = ob_get_contents();
ob_end_clean();