diff --git a/blocks/participants/block_participants.php b/blocks/participants/block_participants.php
index 135ad8d0a48..b5ca5f2a201 100644
--- a/blocks/participants/block_participants.php
+++ b/blocks/participants/block_participants.php
@@ -47,6 +47,11 @@ class block_participants extends block_list {
require_once($GLOBALS['CFG']->dirroot.'/my/pagelib.php');
return array('all' => true, MY_MOODLE_FORMAT => false);
}
+
+ function applicable_formats() {
+ require_once($GLOBALS['CFG']->dirroot.'/my/pagelib.php');
+ return array('all' => true, MY_MOODLE_FORMAT => false);
+ }
}
?>
diff --git a/lib/weblib.php b/lib/weblib.php
index 8fedffcc19a..182c3da5dc0 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -2250,7 +2250,8 @@ function print_navigation ($navigation) {
$site->shortname = get_string('home');
}
$navigation = str_replace('->', '»', $navigation);
- echo ''. $site->shortname .' » '. $navigation;
+ echo ''. $site->shortname .' » '. $navigation;
}
}
diff --git a/login/index.php b/login/index.php
index 8e84adadc1b..c19bbb91c12 100644
--- a/login/index.php
+++ b/login/index.php
@@ -157,8 +157,8 @@
} else {
$urltogo = $CFG->wwwroot.'/my'; /// Go to the standard home page
- if (isadmin() || empty($CFG->mymoodleredirect)) {
- $urltogo = $CFG->wwwroot; /// not needed by admins or when it's turned off
+ if (isadmin() || empty($CFG->mymoodleredirect) || isguest()) {
+ $urltogo = $CFG->wwwroot; /// not needed by admins or guests or when it's turned off
}
unset($SESSION->wantsurl); /// Just in case
}
diff --git a/my/pagelib.php b/my/pagelib.php
index 7d6fed52eb4..4a1ff955304 100644
--- a/my/pagelib.php
+++ b/my/pagelib.php
@@ -32,6 +32,13 @@ class page_my_moodle extends page_base {
global $USER;
+ $replacements = array(
+ '%fullname%' => get_string('mymoodle','my')
+ );
+ foreach($replacements as $search => $replace) {
+ $title = str_replace($search, $replace, $title);
+ }
+
$site = get_site();
$button = update_mymoodle_icon($USER->id);