aboutsummaryrefslogtreecommitdiff
path: root/lib/visual.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/visual.inc.php')
-rw-r--r--lib/visual.inc.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/visual.inc.php b/lib/visual.inc.php
index 7b7ef10..0802606 100644
--- a/lib/visual.inc.php
+++ b/lib/visual.inc.php
@@ -596,12 +596,7 @@ function tooltipIcon($text, $important = false, $html = false): string
// render tooltip
$template = $GLOBALS['template_factory']->open('shared/tooltip');
- return $template->render([
- 'text' => $text,
- 'important' => $important,
- 'html' => $html,
- 'tooltip_id' => md5($text)
- ]);
+ return $template->render(compact('text', 'important', 'html'));
}
/**
@@ -613,13 +608,9 @@ function tooltipIcon($text, $important = false, $html = false): string
function tooltipHtmlIcon($text, $important = false)
{
// render tooltip
+ $html = true;
$template = $GLOBALS['template_factory']->open('shared/tooltip');
- return $template->render([
- 'text' => $text,
- 'important' => $important,
- 'html' => true,
- 'tooltip_id' => md5($text)
- ]);
+ return $template->render(compact('text', 'important', 'html'));
}
/**