Node.js based forum software built for the modern web
added page titles
Julian Lam31996f9377a8
diff --git a/public/language/en-GB/pages.json b/public/language/en-GB/pages.jsonindex 104e2249f2..5efa686fc3 100644--- a/public/language/en-GB/pages.json+++ b/public/language/en-GB/pages.json@@ -32,6 +32,9 @@"chats": "Chats","chat": "Chatting with %1",+ "flags": "Flags",+ "flag-details": "Flag %1 Details",+"account/edit": "Editing \"%1\"","account/edit/password": "Editing password of \"%1\"","account/edit/username": "Editing username of \"%1\"",diff --git a/src/controllers/mods.js b/src/controllers/mods.jsindex 656605f277..62f7b6dd07 100644--- a/src/controllers/mods.js+++ b/src/controllers/mods.js@@ -43,7 +43,8 @@ modsController.flags.list = function (req, res, next) {res.render('flags/list', {flags: flags,hasFilter: !!Object.keys(filters).length,- filters: filters+ filters: filters,+ title: '[[pages:flags]]'});});});@@ -67,7 +68,8 @@ modsController.flags.detail = function (req, res, next) {type_bool: ['post', 'user'].reduce(function (memo, cur) {memo[cur] = results.flagData.type === cur;return memo;- }, {})+ }, {}),+ title: '[[pages:flag-details, ' + req.params.flagId + ']]'}));});};