Legal: set link as clicable link in the message -refs BT#20846

pull/4901/head
NicoDucou 2 years ago
parent 6898412fae
commit fa98735d28
  1. 3
      public/main/inc/lib/legal.lib.php

@ -393,11 +393,12 @@ class LegalManager
$link = trim(
api_get_setting('course_validation_terms_and_conditions_url')
);
$completeLink = '<a href="'.$link.'">'.$link.'</a>';
// Note: Translated string has 3 replacement markers, not just one as the original string suggests.
$content = sprintf(
get_lang('Hello,<br />Your tutor sent you your terms and conditions. You can sign it following this URL: %s'),
$studentDetails['firstname'],
$link,
$completeLink,
$coachDetails['complete_name']
);
MessageManager::send_message_simple($userId, $subject, $content);

Loading…
Cancel
Save