Skip to content

Commit

Permalink
Fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Mar 20, 2024
1 parent 03bd821 commit 977fe15
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/helpers/DiagnosticsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,9 @@ public static function getTests(): array
if ($globalSetCount > 0) {
$pass = $settings->refreshCacheAutomaticallyForGlobals === false;
if ($pass) {
$message = '<a href="' . UrlHelper::cpUrl('globals') . '">' . Craft::t('blitz', '{num, plural, =1{global exists} other{globals exist}}', ['num' => $globalSetCount]) . '</a> and
<code>refreshCacheAutomaticallyForGlobals</code> is disabled.';
$message = '<a href="' . UrlHelper::cpUrl('globals') . '">One or more globals exist</a> and <code>refreshCacheAutomaticallyForGlobals</code> is disabled.';
} else {
$message = '<a href="' . UrlHelper::cpUrl('globals') . '">' . Craft::t('blitz', '{num, plural, =1{global exists} other{globals exist}}', ['num' => $globalSetCount]) . '</a> and
<code>refreshCacheAutomaticallyForGlobals</code> is enabled.';
$message = '<a href="' . UrlHelper::cpUrl('globals') . '">One or more globals exist</a> and <code>refreshCacheAutomaticallyForGlobals</code> is enabled.';
}
} else {
$pass = true;
Expand Down

0 comments on commit 977fe15

Please sign in to comment.