pub / rememori

Simple file-based bookmarking and notes application
git clone src.jayvii.de/pub/rememori.git
Home | Log | Files | Exports | Refs | README | RSS

commit 57cc9167b4182e51c3bda1048c2022fadddf6b6c
parent 06b0395a01703705eb2bece75c63f9d1af6c9cca
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Fri, 20 Dec 2024 10:28:28 +0100

fix: use i18n global variable for "all" category directly

Diffstat:
Mlib/list.php | 11+++--------
1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/lib/list.php b/lib/list.php @@ -163,7 +163,7 @@ function list_categories( /* initilize categories array ncluding the "all" pseudo-category */ $categories = array( array( - "name" => "", + "name" => $GLOBALS["i18n_list"], "matches" => 0 ) ); @@ -208,13 +208,8 @@ function list_categories( } /* create button label */ - if (!empty($category["name"])) { - $btn_label = $category["name"] . ": " . $category["matches"] . " " . - $GLOBALS["i18n_notes"]; - } else { - $btn_label = $GLOBALS["i18n_list"] . ": " . $category["matches"] . " " . - $GLOBALS["i18n_notes"]; - } + $btn_label = $category["name"] . ": " . $category["matches"] . " " . + $GLOBALS["i18n_notes"]; ?>