|
@@ 798-806 (lines=9) @@
|
| 795 |
|
|
| 796 |
|
$viewBySession = api_get_setting('my_courses_view_by_session') === 'true'; |
| 797 |
|
|
| 798 |
|
if (api_is_global_chat_enabled() || $viewBySession) { |
| 799 |
|
// Do not include the global chat in LP |
| 800 |
|
if ($this->show_learnpath == false && |
| 801 |
|
$this->show_footer == true && |
| 802 |
|
$this->hide_global_chat == false |
| 803 |
|
) { |
| 804 |
|
$js_files[] = 'chat/js/chat.js'; |
| 805 |
|
} |
| 806 |
|
} |
| 807 |
|
|
| 808 |
|
if (api_get_setting('accessibility_font_resize') == 'true') { |
| 809 |
|
$js_files[] = 'fontresize.js'; |
|
@@ 884-889 (lines=6) @@
|
| 881 |
|
{ |
| 882 |
|
global $disable_js_and_css_files, $htmlHeadXtra; |
| 883 |
|
$js_files = array(); |
| 884 |
|
if (api_is_global_chat_enabled()) { |
| 885 |
|
//Do not include the global chat in LP |
| 886 |
|
if ($this->show_learnpath == false && $this->show_footer == true && $this->hide_global_chat == false) { |
| 887 |
|
$js_files[] = 'chat/js/chat.js'; |
| 888 |
|
} |
| 889 |
|
} |
| 890 |
|
$js_file_to_string = null; |
| 891 |
|
|
| 892 |
|
foreach ($js_files as $js_file) { |