This commit is contained in:
barisusakli
2015-01-19 15:12:05 -05:00
parent 5160ab1ed1
commit d96a1f0365

View File

@@ -26,7 +26,6 @@ module.exports = function(Meta) {
}
Meta.title.parseFragment(uri, language, locals, function(err, title) {
if (err) {
title = fallbackTitle;
} else {
@@ -41,7 +40,6 @@ module.exports = function(Meta) {
};
Meta.title.parseFragment = function (urlFragment, language, locals, callback) {
urlFragment = validator.escape(urlFragment);
var translated = ['', 'recent', 'unread', 'users', 'notifications'];
if (translated.indexOf(urlFragment) !== -1) {
if (!urlFragment.length) {
@@ -75,7 +73,7 @@ module.exports = function(Meta) {
return callback(err);
}
if (locals.notFound) {
if (!username) {
username = '[[error:no-user]]';
}