From a98110c01fa2480bc4ce4ee12c4d95d79051b38e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 8 Dec 2022 17:37:30 +0100 Subject: [PATCH] Fix the generated code of `{jsphrase}` --- .../template/plugin/JsphrasePrefilterTemplatePlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/template/plugin/JsphrasePrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/JsphrasePrefilterTemplatePlugin.class.php index 5069d1b6a9..4cfb310c31 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/JsphrasePrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/JsphrasePrefilterTemplatePlugin.class.php @@ -31,7 +31,7 @@ final class JsphrasePrefilterTemplatePlugin implements IPrefilterTemplatePlugin $name = $match['name']; return \sprintf( - "WoltLabLanguage.add('%s', '{jslang}%s{/jslang}');", + "WoltLabLanguage.registerPhrase('%s', '{jslang}%s{/jslang}');", $name, $name, ); -- 2.20.1