Fix: property api dir_temp (#35439)

* fix undefined property

* rename key
This commit is contained in:
Dylan Bourdere 2025-09-25 11:59:09 +02:00 committed by GitHub
parent 79210c0120
commit a63eae7903
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -125,6 +125,7 @@ class Conf
public $notification;
public $expensereport;
public $productbatch;
public $api;
@ -257,6 +258,7 @@ class Conf
$this->notification = new stdClass();
$this->expensereport = new stdClass();
$this->productbatch = new stdClass();
$this->api = new stdClass();
// Common arrays
$this->cache = array();
@ -504,6 +506,10 @@ class Conf
$this->admin->dir_output = $rootfordata.'/admin';
$this->admin->dir_temp = $rootfortemp.'/admin/temp';
// For api storage
$this->api->dir_output = $rootfordata.'/api';
$this->api->dir_temp = $rootfortemp.'/api/temp';
// For user storage
$this->user->multidir_output = array($this->entity => $rootfordata."/users");
$this->user->multidir_temp = array($this->entity => $rootfortemp."/users/temp");