From: Tim Düsterhus Date: Mon, 30 Jan 2012 13:33:47 +0000 (+0100) Subject: WCF.Language.get returns the key when the language item is not found X-Git-Tag: 2.0.0_Beta_1~1375^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a61f9d7179462e0aa7f0c8f129552d7d2b3d7e1;p=GitHub%2FWoltLab%2FWCF.git WCF.Language.get returns the key when the language item is not found This is a consistent behaviour to the PHP code --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 8fad51d2e6..bc3364feda 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1683,6 +1683,10 @@ WCF.Language = { // evaluate templates value = value.fetch(parameters); } + else if (value === null) { + // return key again + return key; + } return value; }