Merge pull request #3185 from techAPJ/patch-1

FIX: uncategorized is showing up in title tag on topics
This commit is contained in:
Robin Ward 2015-02-09 14:30:19 -05:00
commit 62b1969c4b

View file

@ -20,7 +20,8 @@ var TopicRoute = Discourse.Route.extend(ShowFooter, {
var result = model.get('title'),
cat = model.get('category');
if (cat && !cat.get('isUncategorized')) {
// Only display uncategorized in the title tag if it was renamed
if (cat && !(cat.get('isUncategorizedCategory') && cat.get('name').toLowerCase() == "uncategorized")) {
var catName = cat.get('name'),
parentCategory = cat.get('parentCategory');