From: Maximilian Mader Date: Wed, 16 Oct 2013 13:19:19 +0000 (+0200) Subject: Add missing global modifier to WCF.Template language tag X-Git-Tag: 2.0.0_Beta_11~33^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da97f310db094e4375ab7df813f4f431d4d6fbb4;p=GitHub%2FWoltLab%2FWCF.git Add missing global modifier to WCF.Template language tag --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 6eeb66397b..20a3d8159f 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3933,7 +3933,7 @@ WCF.Template = Class.extend({ return "' + " + content + " + '"; }) // {lang}foo{/lang} - .replace(/{lang}(.+?){\/lang}/, function(_, content) { + .replace(/{lang}(.+?){\/lang}/g, function(_, content) { return "' + WCF.Language.get('" + unescape(content) + "') + '"; }) // {if}