Add `wcf.global.button.replace` to phrase preloader
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 2 Jul 2024 08:06:42 +0000 (10:06 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Tue, 2 Jul 2024 08:06:42 +0000 (10:06 +0200)
com.woltlab.wcf/templates/shared_fileProcessorFormField.tpl
wcfsetup/install/files/lib/system/event/listener/PreloadPhrasesCollectingListener.class.php

index 42045031ec17fa277441540f7d85e1ba6aab3d8b..442f8b62f8ce4d069e671d5513bb900428e0c7db 100644 (file)
@@ -19,8 +19,6 @@
 {/if}
 
 <script data-relocate="true">
-       {jsphrase name='wcf.global.button.replace'}
-
        require(["WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor"], ({ FileProcessor }) => {
                new FileProcessor(
                        '{unsafe:$field->getPrefixedId()|encodeJS}',
index 36acc9b5c2d6670d351387a5ecaf0896f3ed1b89..486abbd89591b33840329e9f5af83bb6fed75805 100644 (file)
@@ -109,6 +109,7 @@ final class PreloadPhrasesCollectingListener
         $event->preload('wcf.global.success');
         $event->preload('wcf.global.success.add');
         $event->preload('wcf.global.success.edit');
+        $event->preload('wcf.global.button.replace');
 
         $event->preload('wcf.global.rss.accessToken.info');
         $event->preload('wcf.global.rss.copy');