Skip to content

Commit

Permalink
FIX wrong fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Jan 30, 2025
1 parent b190685 commit 0eb2138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/categories/class/categorie.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1458,8 +1458,8 @@ public function print_all_ways($sep = '>>', $url = '', $nocolor = 0, $addp
if ($i == count($way)) { // Last category in hierarchy
// Check contrast with background and correct text color
$forced_color = 'categtextwhite';
if (empty($this->color)) {
if (colorIsLight($this->color)) { // If color is light, we force color to dark
if (empty($cat->color)) {
if (colorIsLight($cat->color)) { // If color is light, we force color to dark
$forced_color = 'categtextblack';
}
}
Expand Down

0 comments on commit 0eb2138

Please sign in to comment.