mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-19124 Fix up the headers with strings
This commit is contained in:
parent
c7e4621eb4
commit
bfe6fe455e
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user