mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-17 18:45:16 +00:00
Fix id prefix for consistency
An attempt to fix issue #45 (`uniqid` has microsecond precision, so it is actually possible to get identical `id`, maybe it would be better to use `mt_rand` instead of `uniqid` to avoid conflicts at all)
This commit is contained in:
parent
2ef0233058
commit
786eaeaab0
@ -217,7 +217,7 @@ class JEDcheckerReport extends JObject
|
|||||||
if ($compat_count > 0)
|
if ($compat_count > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
$collapseID = uniqid('warning_');
|
$collapseID = uniqid('compat_');
|
||||||
|
|
||||||
$html[] = '<div class="alert alert-warning" data-toggle="collapse" data-target="#' . $collapseID . '"><strong>' . $compat_count . ' ' . JText::_('COM_JEDCHECKER_COMPAT_ISSUES') . '</strong> - Click to View Details</div>';
|
$html[] = '<div class="alert alert-warning" data-toggle="collapse" data-target="#' . $collapseID . '"><strong>' . $compat_count . ' ' . JText::_('COM_JEDCHECKER_COMPAT_ISSUES') . '</strong> - Click to View Details</div>';
|
||||||
$html[] = '<div id="' . $collapseID . '" class="collapse"><ul class="alert alert-warning">';
|
$html[] = '<div id="' . $collapseID . '" class="collapse"><ul class="alert alert-warning">';
|
||||||
|
Loading…
Reference in New Issue
Block a user