Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function display($tpl = null)
} elseif ($parts[0] === 'system') {
$icon = 'icon-wrench';
} elseif ($parts[0] === 'healthcheck') {
$icon = 'icon-health';
$icon = 'icon-heart';
} elseif ($parts[0] === 'help') {
$icon = 'icon-info-circle';
} elseif ($lang->hasKey($keyIcon)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,18 @@

PluginHelper::importPlugin('healthcheck');

$arrays = (array) $application->getDispatcher()->dispatch(
$eventResult = $application->getDispatcher()->dispatch(

Check failure on line 126 in administrator/modules/mod_healthcheck/src/Helper/HealthCheckHelper.php

View workflow job for this annotation

GitHub Actions / Run PHPstan

Call to method getDispatcher() of deprecated interface Joomla\CMS\Application\EventAwareInterface: 4.3 will be removed in 7.0 This interface will be removed without replacement as the Joomla 3.x compatibility layer will be removed
$eventName,
new HealthChecksEvent($eventName, ['context' => $context])
);

foreach ($arrays as $response) {
$result = $eventResult->getArgument('result');

if (empty($result)) {
return [];
}

foreach ($result as $response) {
if (!\is_array($response)) {
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions administrator/modules/mod_healthcheck/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<?php echo Text::_('MOD_HEALTHCHECK_FILTER_CRITICAL'); ?>
</button>
</div>
<button type="button" class="btn btn-primary">
<button type="button" class="btn btn-sm btn-primary">
<i class="icon-refresh"></i>
</button>
</div>
Expand Down Expand Up @@ -100,7 +100,7 @@
<?php else : ?>
<?php echo LayoutHelper::render('joomla.content.emptystate_module', [
'textPrefix' => 'MOD_HEALTHCHECK',
'icon' => 'icon-health',
'icon' => 'icon-heart',
'title' => 'MOD_HEALTHCHECK_NO_MATCHING_RESULTS'
]); ?>
<?php endif; ?>
Expand Down
1 change: 1 addition & 0 deletions layouts/joomla/healthchecks/icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
// Make the class string

// depending on status, determine additional class
$class = '';
$filterStatus = 'healthy'; // Default to "healthy"
if (isset($displayData['status'])) {
switch ($displayData['status']) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
}

/* High contrast mode support */
@media (prefers-contrast: high) {
@media (prefers-contrast: more) {
.healthcheck-gauge {
border: 2px solid;
}
Expand Down
Loading