1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-28 08:59:52 +02:00
This commit is contained in:
Ryan Cramer
2023-09-11 10:42:43 -04:00
parent 013231acda
commit 4bb5dbf4a6

View File

@@ -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);
}
}