FEATURE: add setting to omit category name from topic page title tag

This commit is contained in:
Neil Lalonde
2016-04-11 16:44:10 -04:00
parent 6ee11adf58
commit a299231f9a
3 changed files with 5 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class TopicView
def page_title
title = @topic.title
if @topic.category_id != SiteSetting.uncategorized_category_id && @topic.category_id && @topic.category
if SiteSetting.topic_page_title_includes_category && @topic.category_id != SiteSetting.uncategorized_category_id && @topic.category_id && @topic.category
title += " - #{topic.category.name}"
end
title