diff --git a/message/discussion.php b/message/discussion.php index 00d3c0b1214..ce0704f2503 100644 --- a/message/discussion.php +++ b/message/discussion.php @@ -263,7 +263,7 @@ '['.$time.']: '. ''.$printmessage.''; $i=0; - $sortkey = $message->timecreated."$i"; // we need string bacause we would run out of int range + $sortkey = $message->timecreated."$i"; // we need string because we would run out of int range while (array_key_exists($sortkey, $allmessages)) { $i++; $sortkey = $message->timecreated."$i"; @@ -285,7 +285,7 @@ '['.$time.']: '. ''.$printmessage.''; $i=0; - $sortkey = $message->timecreated."$i"; // we need string bacause we would run out of int range + $sortkey = $message->timecreated."$i"; // we need string because we would run out of int range while (array_key_exists($sortkey, $allmessages)) { $i++; $sortkey = $message->timecreated."$i"; @@ -293,7 +293,7 @@ $allmessages[$sortkey] = $printmessage; } } - /*Get still to be read message, use message/lib.php funtion*/ + /*Get still to be read message, use message/lib.php function*/ $messages = message_get_popup_messages($USER->id, $userid); if ($messages) { foreach ($messages as $message) { @@ -308,7 +308,7 @@ '['.$time.']: '. ''.$printmessage.''; $i=0; - $sortkey = $message->timecreated."$i"; // we need string bacause we would run out of int range + $sortkey = $message->timecreated."$i"; // we need string because we would run out of int range while (array_key_exists($sortkey, $allmessages)) { $i++; $sortkey = $message->timecreated."$i"; @@ -331,7 +331,7 @@ '['.$time.']: '. ''.$printmessage.''; $i=0; - $sortkey = $message->timecreated."$i"; // we need string bacause we would run out of int range + $sortkey = $message->timecreated."$i"; // we need string because we would run out of int range while (array_key_exists($sortkey, $allmessages)) { $i++; $sortkey = $message->timecreated."$i"; diff --git a/message/edit.php b/message/edit.php index c95a73e90ec..3a857ca1297 100644 --- a/message/edit.php +++ b/message/edit.php @@ -90,7 +90,7 @@ if ($user->id == $USER->id) { $PAGE->navigation->extend_for_user($user); } -/// Save new preferences if data was submited +/// Save new preferences if data was submitted if (($form = data_submitted()) && confirm_sesskey()) { $preferences = array(); diff --git a/message/index.php b/message/index.php index ae533b94f5b..73c1a6b0af5 100644 --- a/message/index.php +++ b/message/index.php @@ -122,7 +122,7 @@ if (!empty($user2id)) { } unset($user2id); -//was a message sent? Do NOT allow someone looking at somone elses messages to send them. +//was a message sent? Do NOT allow someone looking at someone else's messages to send them. $messageerror = null; if ($currentuser && !empty($user2) && has_capability('moodle/site:sendmessage', $context)) { diff --git a/message/lib.php b/message/lib.php index 2baeca22e68..d785c367aa0 100644 --- a/message/lib.php +++ b/message/lib.php @@ -108,7 +108,7 @@ function message_print_contact_selector($countunreadtotal, $usergroup, $user1, $ message_print_participants($coursecontexts[$courseidtoshow], $courseidtoshow, $PAGE->url, $showcontactactionlinks); } else { - //shouldnt get here. User trying to access a course theyre not in perhaps. + //shouldn't get here. User trying to access a course they're not in perhaps. add_to_log(SITEID, 'message', 'view', 'index.php', $usergroup); } } @@ -869,7 +869,7 @@ function message_print_search_results($frm, $showicontext=false, $user1=null) { echo '