mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-8860 - Enabled multilang filter for site title.
This commit is contained in:
parent
ca7ad7ee74
commit
268ddd5070
@ -102,7 +102,7 @@
|
||||
$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);
|
||||
|
||||
|
@ -145,7 +145,7 @@ function rss_standard_header($title = NULL, $link = NULL, $description = NULL) {
|
||||
|
||||
//Calculate title, link and description
|
||||
if (empty($title)) {
|
||||
$title = $site->fullname;
|
||||
$title = format_string($site->fullname);
|
||||
}
|
||||
if (empty($link)) {
|
||||
$link = $CFG->wwwroot;
|
||||
@ -170,7 +170,7 @@ function rss_standard_header($title = NULL, $link = NULL, $description = NULL) {
|
||||
$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));
|
||||
|
@ -674,7 +674,7 @@ function clam_mail_admins($notice) {
|
||||
|
||||
$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);
|
||||
|
@ -1381,7 +1381,7 @@ function format_string ($string, $striplinks=true, $courseid=NULL ) {
|
||||
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;
|
||||
@ -1397,11 +1397,11 @@ function format_string ($string, $striplinks=true, $courseid=NULL ) {
|
||||
|
||||
// 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);
|
||||
@ -2233,7 +2233,7 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
|
||||
|
||||
// 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
|
||||
|
@ -65,7 +65,7 @@ function set_parameters() {
|
||||
'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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user