$preferred_width_right = bounded_number(BLOCK_R_MIN_WIDTH, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]),
BLOCK_R_MAX_WIDTH);
- print_header(strip_tags($SITE->fullname), $SITE->fullname, 'home', '',
+ print_header($SITE->fullname, $SITE->fullname, 'home', '',
'<meta name="description" content="'. s(strip_tags($SITE->summary)) .'" />',
true, '', user_login_string($SITE).$langmenu);
//Calculate title, link and description
if (empty($title)) {
- $title = $site->fullname;
+ $title = format_string($site->fullname);
}
if (empty($link)) {
$link = $CFG->wwwroot;
$result .= rss_full_tag('language', 2, false, substr($USER->lang,0,2));
}
$today = getdate();
- $result .= rss_full_tag('copyright', 2, false, '© '. $today['year'] .' '. $site->fullname);
+ $result .= rss_full_tag('copyright', 2, false, '© '. $today['year'] .' '. format_string($site->fullname));
/*
if (!empty($USER->email)) {
$result .= rss_full_tag('managingEditor', 2, false, fullname($USER));
$site = get_site();
- $subject = get_string('clamemailsubject', 'moodle', $site->fullname);
+ $subject = get_string('clamemailsubject', 'moodle', format_string($site->fullname));
$admins = get_admins();
foreach ($admins as $admin) {
email_to_user($admin, get_admin(), $subject, $notice);
if ($strcache === false or count($strcache) > 2000 ) { // this number might need some tuning to limit memory usage in cron
$strcache = array();
}
-
+
//init course id
if (empty($courseid)) {
$courseid = $COURSE->id;
// First replace all ampersands not followed by html entity code
$string = preg_replace("/\&(?![a-z0-9#]{1,8};)/", "&", $string);
-
+
if (!empty($CFG->filterall)) {
$string = filter_string($string, $courseid);
}
-
+
// If the site requires it, strip ALL tags from this string
if (!empty($CFG->formatstringstriptags)) {
$string = strip_tags($string);
// Clean up the title
- $title = strip_tags(format_string($title)); // fix for MDL-8582
+ $title = format_string($title); // fix for MDL-8582
$title = str_replace('"', '"', $title);
// Create class and id for this page
'lang' => array('langstr' => get_string('preferredlanguage'),
'value' => current_language()),
'sitename' => array('langstr' => get_string('fullsitename'),
- 'value' => $site->fullname),
+ 'value' => format_string($site->fullname)),
'serverurl' => array('langstr' => get_string('serverurl', 'resource', $CFG),
'value' => $CFG->wwwroot),
'currenttime' => array('langstr' => get_string('time'),