mirror of
https://github.com/moodle/moodle.git
synced 2025-02-17 14:25:37 +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]),
|
$preferred_width_right = bounded_number(BLOCK_R_MIN_WIDTH, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]),
|
||||||
BLOCK_R_MAX_WIDTH);
|
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)) .'" />',
|
'<meta name="description" content="'. s(strip_tags($SITE->summary)) .'" />',
|
||||||
true, '', user_login_string($SITE).$langmenu);
|
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
|
//Calculate title, link and description
|
||||||
if (empty($title)) {
|
if (empty($title)) {
|
||||||
$title = $site->fullname;
|
$title = format_string($site->fullname);
|
||||||
}
|
}
|
||||||
if (empty($link)) {
|
if (empty($link)) {
|
||||||
$link = $CFG->wwwroot;
|
$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));
|
$result .= rss_full_tag('language', 2, false, substr($USER->lang,0,2));
|
||||||
}
|
}
|
||||||
$today = getdate();
|
$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)) {
|
if (!empty($USER->email)) {
|
||||||
$result .= rss_full_tag('managingEditor', 2, false, fullname($USER));
|
$result .= rss_full_tag('managingEditor', 2, false, fullname($USER));
|
||||||
|
@ -674,7 +674,7 @@ function clam_mail_admins($notice) {
|
|||||||
|
|
||||||
$site = get_site();
|
$site = get_site();
|
||||||
|
|
||||||
$subject = get_string('clamemailsubject', 'moodle', $site->fullname);
|
$subject = get_string('clamemailsubject', 'moodle', format_string($site->fullname));
|
||||||
$admins = get_admins();
|
$admins = get_admins();
|
||||||
foreach ($admins as $admin) {
|
foreach ($admins as $admin) {
|
||||||
email_to_user($admin, get_admin(), $subject, $notice);
|
email_to_user($admin, get_admin(), $subject, $notice);
|
||||||
|
@ -2233,7 +2233,7 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
|
|||||||
|
|
||||||
// Clean up the title
|
// 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);
|
$title = str_replace('"', '"', $title);
|
||||||
|
|
||||||
// Create class and id for this page
|
// Create class and id for this page
|
||||||
|
@ -65,7 +65,7 @@ function set_parameters() {
|
|||||||
'lang' => array('langstr' => get_string('preferredlanguage'),
|
'lang' => array('langstr' => get_string('preferredlanguage'),
|
||||||
'value' => current_language()),
|
'value' => current_language()),
|
||||||
'sitename' => array('langstr' => get_string('fullsitename'),
|
'sitename' => array('langstr' => get_string('fullsitename'),
|
||||||
'value' => $site->fullname),
|
'value' => format_string($site->fullname)),
|
||||||
'serverurl' => array('langstr' => get_string('serverurl', 'resource', $CFG),
|
'serverurl' => array('langstr' => get_string('serverurl', 'resource', $CFG),
|
||||||
'value' => $CFG->wwwroot),
|
'value' => $CFG->wwwroot),
|
||||||
'currenttime' => array('langstr' => get_string('time'),
|
'currenttime' => array('langstr' => get_string('time'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user