Skip to content

Commit

Permalink
FIX: Hide Incompatible Plugin Count if Zero
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed Apr 17, 2023
1 parent 0a2b2ff commit 9541f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Template/plugin/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function sortPlugins(&$arr) {
$incompatibleCount = count($incompatible_plugins);
?>
<div class="plugin-count">
<?= t('You have %s plugins installed', $installedCount) ?>&nbsp;<?= t('and %s incompatible plugin(s)', $incompatibleCount) ?>
<?= t('You have %s plugins installed', $installedCount) ?>&nbsp;<?= ($incompatibleCount > 0) ? t('and %s incompatible plugin(s)', $incompatibleCount) : '' ?>
</div>
<a id="PluginBottom" href="#PluginTop" title="<?= t('Go to the bottom of the page') ?>" class="btn-action"><i class="fa fa-level-down" aria-hidden="true"></i> <?= t('Bottom') ?></a>
<table id="InstalledPluginsTable" class="installed-plugins">
Expand Down

0 comments on commit 9541f54

Please sign in to comment.