Pass WCF.Template parameters to WCF.Language in {lang}
authorTim Düsterhus <duesterhus@woltlab.com>
Sat, 10 Jan 2015 01:50:41 +0000 (02:50 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Sat, 10 Jan 2015 01:52:22 +0000 (02:52 +0100)
wcfsetup/install/files/js/WCF.js

index 2287c855d94d4fe080fe6050f4080a6233b68de1..f2bd13212e1e30f2d99ee87c9094e0661e153a23 100755 (executable)
@@ -4651,7 +4651,7 @@ WCF.Template = Class.extend({
                })
                // {lang}foo{/lang}
                .replace(/\{lang\}(.+?)\{\/lang\}/g, function(_, content) {
-                       return "' + WCF.Language.get('" + unescape(content) + "') + '";
+                       return "' + WCF.Language.get('" + unescape(content) + "', v) + '";
                })
                // {include}
                .replace(/\{include (.+?)\}/g, function(_, content) {