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.
This commit is contained in:
parent
abad38c2e7
commit
6a205ea0a5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue