From 4bb5dbf4a61e7090dcb1581b1944b3d3642379a0 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Mon, 11 Sep 2023 10:42:43 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1809 --- wire/modules/LanguageSupport/ProcessLanguage.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wire/modules/LanguageSupport/ProcessLanguage.module b/wire/modules/LanguageSupport/ProcessLanguage.module index 91713ba0..8fbc2bb0 100644 --- a/wire/modules/LanguageSupport/ProcessLanguage.module +++ b/wire/modules/LanguageSupport/ProcessLanguage.module @@ -85,7 +85,7 @@ class ProcessLanguage extends ProcessPageType { * */ public function init() { - $this->addHookBefore('InputfieldFile::render', $this, 'renderInputfieldFile'); + $this->addHookBefore('InputfieldFile(name^=language_files)::render', $this, 'renderInputfieldFile'); $this->addHookAfter('InputfieldFile::renderItem', $this, 'renderInputfieldFileItem'); $this->addHookAfter('InputfieldFile::renderUpload', $this, 'renderInputfieldFileUpload'); $this->addHookBefore('InputfieldFile::processInput', $this, 'processInputfieldFileInput'); @@ -647,4 +647,3 @@ class ProcessLanguage extends ProcessPageType { $translator->unloadTextdomain($textdomain); } } -