From 9a61f9d7179462e0aa7f0c8f129552d7d2b3d7e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 30 Jan 2012 14:33:47 +0100 Subject: [PATCH] WCF.Language.get returns the key when the language item is not found This is a consistent behaviour to the PHP code --- wcfsetup/install/files/js/WCF.js | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.20.1