From: Tim Düsterhus Date: Sat, 10 Jan 2015 01:50:41 +0000 (+0100) Subject: Pass WCF.Template parameters to WCF.Language in {lang} X-Git-Tag: 2.1.0_Beta_4~108^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4424014b5a4c81e3ad5247fc015c44747873595d;p=GitHub%2FWoltLab%2FWCF.git Pass WCF.Template parameters to WCF.Language in {lang} --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 2287c855d9..f2bd13212e 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -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) {