found some other places with the same problem

This commit is contained in:
psychobunny
2015-10-13 16:19:52 -04:00
parent bc2bf6ef37
commit 8ef46ebc7d
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ function validateUpload(req, res, next, uploadedFile, allowedTypes) {
}
});
res.json({error: '[[error:invalid-image-type, ' + allowedTypes.join(', ') + ']]'});
res.json({error: '[[error:invalid-image-type, ' + allowedTypes.join(', ') + ']]'});
return false;
}

View File

@@ -23,7 +23,7 @@ module.exports = function(SocketUser) {
} else if (type === 'uploaded') {
type = 'uploadedpicture';
} else {
return callback(new Error('[[error:invalid-image-type, ' + ['gravatar', 'uploadedpicture'].join(', ') + ']]'));
return callback(new Error('[[error:invalid-image-type, ' + ['gravatar', 'uploadedpicture'].join(', ') + ']]'));
}
async.waterfall([