Fixed html path for categories.

This commit is contained in:
Christian P. MOMON 2024-08-16 23:27:52 +02:00
parent 15459f6131
commit e9e5bcebd7

View file

@ -72,13 +72,13 @@ public class CategoriesView
if (mode == Mode.ALL)
{
data.setAttribute("category", index, "categoryLink", "title", category.getDescription());
data.setAttribute("category", index, "categoryLogo", "src", "/commons/" + category.getLogoPath());
data.setAttribute("category", index, "categoryLogo", "src", "/commons/categories/" + category.getLogoPath());
data.setEscapedContent("category", index, "categoryName", category.getName());
}
else if (mode == Mode.ICONS_ONLY)
{
data.setAttribute("category", index, "categoryLink", "title", category.getName());
data.setAttribute("category", index, "categoryLogo", "src", "/commons/" + category.getLogoPath());
data.setAttribute("category", index, "categoryLogo", "src", "/commons/categories/" + category.getLogoPath());
data.setAttribute("category", index, "categoryName", "class", "xid:nodisplay");
}
else if (mode == Mode.LABELS_ONLY)