Browse Source

Adapting link to send directly to a course that will redirect to the terms and conditions -refs BT#11196

Nicolas Ducoulombier 8 years ago
parent
commit
b9da1ce449
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/inc/lib/legal.lib.php

+ 3 - 1
main/inc/lib/legal.lib.php

@@ -289,10 +289,12 @@ class LegalManager
     {
         $userInfo = api_get_user_info($userId);
         $subject = get_lang('SendTermsSubject');
+        $webPath = api_get_path(WEB_PATH);
+        $link = '<a href="'.$webPath.'courses/FORUMDAIDE/index.php">'.$webPath.'courses/FORUMDAIDE/index.php</a>';
         $content = sprintf(
             get_lang('SendTermsDescriptionToUrlX'),
             $userInfo['firstName'],
-            api_get_path(WEB_PATH)
+            $link
         );
         MessageManager::send_message_simple($userId, $subject, $content);
         Display::addFlash(Display::return_message(get_lang('Sent')));