Skip to content

Commit

Permalink
MDL-19124 Fix up the headers with strings
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed May 5, 2010
1 parent c7e4621 commit bfe6fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions my/indexsys.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 1 addition & 3 deletions user/profilesys.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bfe6fe4

Please sign in to comment.