fix: show translated no category when sorting by category (#122)

* fix: show translated no category when sorting by category

* chore: allow caching of docker building images
This commit is contained in:
Miguel Ribeiro
2024-02-18 15:18:04 +01:00
committed by GitHub
parent 03b175d175
commit 330c061b74
2 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -70,7 +70,13 @@
if ($sort == "category_id" && $subscription['category_id'] != $currentCategory) {
?>
<div class="subscription-list-title">
<?= $categories[$subscription['category_id']]['name'] ?>
<?php
if ($subscription['category_id'] == 1) {
echo translate('no_category', $i18n);
} else {
echo $categories[$subscription['category_id']]['name'];
}
?>
</div>
<?php
$currentCategory = $subscription['category_id'];