MDL-19124 Fix up the headers with strings

This commit is contained in:
Martin Dougiamas 2010-05-05 05:58:56 +00:00
parent c7e4621eb4
commit bfe6fe455e
2 changed files with 2 additions and 6 deletions

View File

@ -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();

View File

@ -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();