Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging

pull/1/head
ansuz 7 years ago
commit c448c9035e

@ -93,7 +93,11 @@ define(req, function(Util, Default, Language) {
var text = messages[key]; var text = messages[key];
if (typeof(text) === 'string') { if (typeof(text) === 'string') {
return text.replace(/\{(\d+)\}/g, function (str, p1) { return text.replace(/\{(\d+)\}/g, function (str, p1) {
return typeof(argArray[p1]) === 'string' ? argArray[p1] : ''; if (typeof(argArray[p1]) === 'string' || typeof(argArray[p1]) === "number") {
return argArray[p1];
}
console.error("Only strings and numbers can be used in _getKey params!");
return '';
}); });
} else { } else {
return text; return text;

Loading…
Cancel
Save