Skip to content

Commit

Permalink
LPs: Fix category link visibility, dont add cidreq already added
Browse files Browse the repository at this point in the history
BT#17744
  • Loading branch information
jmontoyaa committed Feb 19, 2021
1 parent cf7fe49 commit bb11b82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/inc/lib/course_home.lib.php
Expand Up @@ -1134,7 +1134,9 @@ class="make_visible_and_invisible"
if ($tool['image'] === 'file_html.png' || $tool['image'] === 'file_html_na.png') {
$tool['link'] = $tool['link'];
} else {
$tool['link'] = $tool['link'].$qm_or_amp.api_get_cidreq(true, false).'&gidReq=0';
if (!in_array($tool['image'], ['lp_category.gif', 'lp_category_na.gif'])) {
$tool['link'] = $tool['link'].$qm_or_amp.api_get_cidreq(true, false).'&gidReq=0';
}
}

$toolIid = isset($tool['iid']) ? $tool['iid'] : null;
Expand Down

0 comments on commit bb11b82

Please sign in to comment.