diff --git a/my/indexsys.php b/my/indexsys.php index 372bcd3326dd5..1289d40ecf361 100644 --- a/my/indexsys.php +++ b/my/indexsys.php @@ -43,12 +43,10 @@ require_login(); -$strmymoodle = get_string('myhome'); - $context = get_context_instance(CONTEXT_SYSTEM); require_capability('moodle/my:configsyspages', $context); $PAGE->set_blocks_editing_capability('moodle/my:configsyspages'); -$header = "$SITE->shortname: $strmymoodle (DEFAULT)"; +$header = "$SITE->shortname: ".get_string('myhome')." (".get_string('mypage', 'admin').")"; // Start setting up the page $params = array(); diff --git a/user/profilesys.php b/user/profilesys.php index d45f90731419d..79740ef311e8c 100644 --- a/user/profilesys.php +++ b/user/profilesys.php @@ -37,12 +37,10 @@ require_login(); -$strpublicprofile = get_string('publicprofile'); - $context = get_context_instance(CONTEXT_SYSTEM); require_capability('moodle/my:configsyspages', $context); $PAGE->set_blocks_editing_capability('moodle/my:configsyspages'); -$header = "$SITE->shortname: $strpublicprofile (DEFAULT)"; +$header = "$SITE->shortname: ".get_string('publicprofile')." (".get_string('myprofile', 'admin').")"; // Start setting up the page $params = array();