Also use the correct path for the emojis in the ACP
authorCyperghost <olaf_schmitz_1@t-online.de>
Fri, 8 Nov 2024 12:24:04 +0000 (13:24 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 8 Nov 2024 12:24:04 +0000 (13:24 +0100)
extra/update-emoji-picker-element.ts
ts/WoltLabSuite/Core/Component/EmojiPicker/Localization.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/EmojiPicker/Localization.js

index cc65b19197ae5dae52549273b196468cadca6b2d..daab751c770c693d5129f4ea97b28968dcacf0b3 100644 (file)
@@ -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\`;
 }
 `;
 
index d9bdaff0d43fba1f98d7a9a1654e9b7120f2f7e7..f7ad749a1443f0d22bd30e660d519afab88519e9 100644 (file)
@@ -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`;
 }
index 073e5e2863a57f959e317f978b83399eb6398ee8..580e8306507155c96a7c94cecbad11ba80ef92a6 100644 (file)
@@ -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`;
     }
 });