mirror of
https://github.com/moodle/moodle.git
synced 2025-03-17 14:10:08 +01:00
message MDL-24788 improved jabber notifications
This commit is contained in:
parent
b2b204b764
commit
24a56744c1
@ -78,6 +78,7 @@ $string['newsearch'] = 'New search';
|
||||
$string['noframesjs'] = 'Use more accessible interface';
|
||||
$string['nomessages'] = 'No messages waiting';
|
||||
$string['nomessagesfound'] = 'No messages were found';
|
||||
$string['noreply'] = 'Do not reply to this message';
|
||||
$string['nosearchresults'] = 'There were no results from your search';
|
||||
$string['offline'] = 'Offline';
|
||||
$string['offlinecontacts'] = 'Offline contacts ({$a})';
|
||||
|
@ -54,6 +54,12 @@ class message_output_jabber extends message_output {
|
||||
|
||||
$jabbermessage = fullname($eventdata->userfrom).': '.$eventdata->smallmessage;
|
||||
|
||||
if (!empty($eventdata->contexturl)) {
|
||||
$jabbermessage .= "\n".get_string('view').': '.$eventdata->contexturl;
|
||||
}
|
||||
|
||||
$jabbermessage .= "\n".get_string('noreply','message');
|
||||
|
||||
$conn = new XMPPHP_XMPP($CFG->jabberhost,$CFG->jabberport,$CFG->jabberusername,$CFG->jabberpassword,'moodle',$CFG->jabberserver);
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user