Skip to content

Commit

Permalink
[DigiriskElement] fix: remove link on getNomUrl for sharedrisk
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Apr 19, 2022
1 parent 99df8dc commit 92c4e66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions class/digiriskelement.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,11 @@ public function getNomUrl($withpicto = 0, $option = '', $addlabel = 0, $moreinpo
$linkclose .= ' class="classfortooltip' . ($morecss ? ' ' . $morecss : '') . '"';
} else $linkclose = ($morecss ? ' class="' . $morecss . '"' : '');

$linkstart = '<a href="' . $url . '"';
$linkstart .= $linkclose . '>';
$linkend = '</a>';
if ($option != 'nolink') {
$linkstart = '<a href="' . $url . '"';
$linkstart .= $linkclose . '>';
$linkend = '</a>';
}

$result .= $linkstart;
if ($withpicto) $result .= '<i class="fas fa-info-circle"></i>' . ' ';
Expand Down

0 comments on commit 92c4e66

Please sign in to comment.