Browse Source

Learnpath: Change language term linked to buy course plugin for certificate service

Yannick Warnier 6 years ago
parent
commit
fa5644466a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      main/lp/lp_final_item.php

+ 3 - 2
main/lp/lp_final_item.php

@@ -47,13 +47,14 @@ if ($checker) {
     if (empty($userServiceSale)) {
         // Instance a new template : No page tittle, No header, No footer
         $tpl = new Template(null, false, false);
+        $url = api_get_path(WEB_PLUGIN_PATH).'buycourses/src/service_catalog.php';
         $content = sprintf(
             Display::return_message(
-                $plugin->get_lang('IfYouWantToGetTheCertificateAndOrSkillsAsociatedToThisCourseYouNeedToBuyTheCertificateServiceYouCanGoToServiceCatalogClickingHere'),
+                get_lang('IfYouWantToGetTheCertificateAndOrSkillsAsociatedToThisCourseYouNeedToBuyTheCertificateServiceYouCanGoToServiceCatalogClickingHere'),
                 'normal',
                 false
             ),
-            api_get_path(WEB_PLUGIN_PATH).'buycourses/src/service_catalog.php'
+            '<a href="'.$url.'">'. $url .'</a>'
         );
         $tpl->assign('content', $content);
         $tpl->display_blank_template();