Skip to content

Commit

Permalink
Merge branch 'MDL-61196_34' of git://github.com/markn86/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_34_STABLE
  • Loading branch information
andrewnicols committed Mar 2, 2018
2 parents 6b1a68d + 2f2d7e6 commit a40d205
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions message/output/popup/classes/output/popup_notification.php
Expand Up @@ -70,6 +70,10 @@ public function export_for_template(\renderer_base $output) {
$context->timecreatedpretty = get_string('ago', 'message', format_time(time() - $context->timecreated));
$context->text = message_format_message_text($context);
$context->read = $context->timeread ? true : false;

// Need to strip any HTML from these.
$context->subject = clean_param($context->subject, PARAM_TEXT);
$context->contexturlname = clean_param($context->contexturlname, PARAM_TEXT);
$context->shortenedsubject = shorten_text($context->subject, 125);

if (!empty($context->component) && substr($context->component, 0, 4) == 'mod_') {
Expand Down

0 comments on commit a40d205

Please sign in to comment.