Add missing global modifier to WCF.Template language tag
authorMaximilian Mader <maximilian.mader@gmx.de>
Wed, 16 Oct 2013 13:19:19 +0000 (15:19 +0200)
committerMaximilian Mader <maximilian.mader@gmx.de>
Wed, 16 Oct 2013 13:19:19 +0000 (15:19 +0200)
wcfsetup/install/files/js/WCF.js

index 6eeb66397b1c0329b6b24027e495cff4aa8917d1..20a3d8159f383ee86a68fa67450afa5cb831b4be 100755 (executable)
@@ -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}