Legal: fix terms and condition display when loaded for course but in C2 we do not enter the course first so we do not have the coontext - refs BT#20895

pull/5356/head
NicoDucou 1 year ago
parent 1128e8b5f8
commit c0b21034ec
  1. 4
      public/main/inc/lib/legal.lib.php

@ -271,10 +271,6 @@ class LegalManager
</div>';
}
$preview .= get_lang('By clicking on \'Register\' below you are agreeing to the Terms and Conditions');
$courseInfo = api_get_course_info();
if ('course' === api_get_setting('load_term_conditions_section') && empty($courseInfo)) {
$preview = '';
}
break;
// Page link
case 1:

Loading…
Cancel
Save