From bfe6fe455e4b00cfb29d21b304cde67bc431c36f Mon Sep 17 00:00:00 2001 From: Martin Dougiamas Date: Wed, 5 May 2010 05:58:56 +0000 Subject: [PATCH] MDL-19124 Fix up the headers with strings --- my/indexsys.php | 4 +--- user/profilesys.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/my/indexsys.php b/my/indexsys.php index 372bcd3326d..1289d40ecf3 100644 --- a/my/indexsys.php +++ b/my/indexsys.php @@ -43,12 +43,10 @@ $edit = optional_param('edit', null, PARAM_BOOL); // Turn editing on and of 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 d45f9073141..79740ef311e 100644 --- a/user/profilesys.php +++ b/user/profilesys.php @@ -37,12 +37,10 @@ $edit = optional_param('edit', null, PARAM_BOOL); // Turn editing on and of 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();