From 6a205ea0a5b6ee54cb952421dc97c0364092042b Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Wed, 17 Jan 2024 21:44:48 +0200 Subject: [PATCH] DEV: Replace lazy_load_categories site setting (#25302) The site setting has been removed in a previous commit abad38c, but it was merged at the same time with 4cfc0e2 which added it back. --- app/models/category_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/category_list.rb b/app/models/category_list.rb index f9ba6088284..7ae4704f388 100644 --- a/app/models/category_list.rb +++ b/app/models/category_list.rb @@ -151,7 +151,7 @@ class CategoryList @categories = query.to_a - if SiteSetting.lazy_load_categories + if @guardian.can_lazy_load_categories? categories_with_rownum = Category .secured(@guardian)