From: Cyperghost Date: Fri, 8 Nov 2024 12:24:04 +0000 (+0100) Subject: Also use the correct path for the emojis in the ACP X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0eefa530a5ead771b9635905bbaa88e53f0bdc16;p=GitHub%2FWoltLab%2FWCF.git Also use the correct path for the emojis in the ACP --- diff --git a/extra/update-emoji-picker-element.ts b/extra/update-emoji-picker-element.ts index cc65b19197..daab751c77 100644 --- a/extra/update-emoji-picker-element.ts +++ b/extra/update-emoji-picker-element.ts @@ -98,10 +98,10 @@ export function getLocalizationData(localization: string): I18n { export function getDataSource(locale: string): string { if (!locales.includes(locale)) { - return \`\${window.WSC_API_URL}emoji/en.json\`; + return \`\${window.WCF_PATH}emoji/en.json\`; } - return \`\${window.WSC_API_URL}emoji/\${locale}.json\`; + return \`\${window.WCF_PATH}emoji/\${locale}.json\`; } `; diff --git a/ts/WoltLabSuite/Core/Component/EmojiPicker/Localization.ts b/ts/WoltLabSuite/Core/Component/EmojiPicker/Localization.ts index d9bdaff0d4..f7ad749a14 100644 --- a/ts/WoltLabSuite/Core/Component/EmojiPicker/Localization.ts +++ b/ts/WoltLabSuite/Core/Component/EmojiPicker/Localization.ts @@ -52,8 +52,8 @@ export function getLocalizationData(localization: string): I18n { export function getDataSource(locale: string): string { if (!locales.includes(locale)) { - return `${window.WSC_API_URL}emoji/en.json`; + return `${window.WCF_PATH}emoji/en.json`; } - return `${window.WSC_API_URL}emoji/${locale}.json`; + return `${window.WCF_PATH}emoji/${locale}.json`; } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/EmojiPicker/Localization.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/EmojiPicker/Localization.js index 073e5e2863..580e830650 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/EmojiPicker/Localization.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/EmojiPicker/Localization.js @@ -51,8 +51,8 @@ define(["require", "exports"], function (require, exports) { } function getDataSource(locale) { if (!locales.includes(locale)) { - return `${window.WSC_API_URL}emoji/en.json`; + return `${window.WCF_PATH}emoji/en.json`; } - return `${window.WSC_API_URL}emoji/${locale}.json`; + return `${window.WCF_PATH}emoji/${locale}.json`; } });