Skip to content

Commit

Permalink
MDL-36162 core_message: string clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjdavis authored and Sam Hemelryk committed Dec 9, 2012
1 parent 8b72167 commit 1380254
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion lang/en/message.php
Expand Up @@ -48,7 +48,6 @@
$string['disabled'] = 'Messaging is disabled on this site';
$string['disallowed'] = 'Disallowed';
$string['discussion'] = 'Discussion';
$string['editmymessage'] = 'Messaging';
$string['emailmessages'] = 'Email messages when I am offline';
$string['emailtagline'] = 'This is a copy of a message sent to you at "{$a->sitename}". Go to {$a->url} to reply.';
$string['emptysearchstring'] = 'You must search for something';
Expand Down
2 changes: 1 addition & 1 deletion lib/navigationlib.php
Expand Up @@ -3979,7 +3979,7 @@ protected function generate_user_settings($courseid, $userid, $gstitle='usercurr
// Messaging
if (($currentuser && has_capability('moodle/user:editownmessageprofile', $systemcontext)) || (!isguestuser($user) && has_capability('moodle/user:editmessageprofile', $usercontext) && !is_primary_admin($user->id))) {
$url = new moodle_url('/message/edit.php', array('id'=>$user->id));
$usersetting->add(get_string('editmymessage', 'message'), $url, self::TYPE_SETTING);
$usersetting->add(get_string('messaging', 'message'), $url, self::TYPE_SETTING);
}

// Blogs
Expand Down
6 changes: 3 additions & 3 deletions message/edit.php
Expand Up @@ -158,9 +158,9 @@
//$preferences->beepnewmessage = get_user_preferences( 'message_beepnewmessage', '', $user->id);

/// Display page header
$streditmymessage = get_string('editmymessage', 'message');
$PAGE->set_title($streditmymessage);
$PAGE->set_heading($streditmymessage);
$strmessaging = get_string('messaging', 'message');
$PAGE->set_title($strmessaging);
$PAGE->set_heading($strmessaging);

// Grab the renderer
$renderer = $PAGE->get_renderer('core', 'message');
Expand Down

0 comments on commit 1380254

Please sign in to comment.