浏览代码

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

Nicolas Ducoulombier 8 年之前
父节点
当前提交
b9da1ce449
共有 1 个文件被更改,包括 3 次插入1 次删除
  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);
         $userInfo = api_get_user_info($userId);
         $subject = get_lang('SendTermsSubject');
         $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(
         $content = sprintf(
             get_lang('SendTermsDescriptionToUrlX'),
             get_lang('SendTermsDescriptionToUrlX'),
             $userInfo['firstName'],
             $userInfo['firstName'],
-            api_get_path(WEB_PATH)
+            $link
         );
         );
         MessageManager::send_message_simple($userId, $subject, $content);
         MessageManager::send_message_simple($userId, $subject, $content);
         Display::addFlash(Display::return_message(get_lang('Sent')));
         Display::addFlash(Display::return_message(get_lang('Sent')));