mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
Fix issue processwire/processwire-issues#1540
This commit is contained in:
@@ -110,7 +110,7 @@ class FieldtypeFileConfiguration extends Wire {
|
||||
|
||||
$this->getConfigInputfieldsOutputFormat($field, $fs);
|
||||
|
||||
require_once($this->wire()->config->paths->modules . 'Inputfield/InputfieldFile/config.php');
|
||||
require_once($this->wire()->config->paths('InputfieldFile') . 'config.php');
|
||||
$configuration = new InputfieldFileConfiguration();
|
||||
$this->wire($configuration);
|
||||
$descriptionFieldset = $configuration->getConfigInputfieldsDescription($field);
|
||||
|
@@ -1411,7 +1411,7 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel
|
||||
*/
|
||||
public function ___getConfigInputfields() {
|
||||
$inputfields = parent::___getConfigInputfields();
|
||||
require_once(__DIR__ . '/config.php');
|
||||
require_once($this->wire()->config->paths('InputfieldFile') . 'config.php');
|
||||
$configuration = new InputfieldFileConfiguration();
|
||||
$this->wire($configuration);
|
||||
$configuration->getConfigInputfields($this, $inputfields);
|
||||
|
Reference in New Issue
Block a user