mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Replace uncategorized_description setting with translation
This commit is contained in:
@@ -26,7 +26,7 @@ class BasicCategorySerializer < ApplicationSerializer
|
||||
end
|
||||
|
||||
def description
|
||||
object.uncategorized? ? SiteSetting.uncategorized_description : object.description
|
||||
object.uncategorized? ? I18n.t('category.uncategorized_description') : object.description
|
||||
end
|
||||
|
||||
def can_edit
|
||||
|
||||
Reference in New Issue
Block a user