33
2
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:
Denis Ryabov 2019-05-15 22:09:22 +03:00 committed by GitHub
parent 2ef0233058
commit 786eaeaab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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">';