From a63eae790384d289ddbeca5c63ed31ed5feb06dd Mon Sep 17 00:00:00 2001 From: Dylan Bourdere Date: Thu, 25 Sep 2025 11:59:09 +0200 Subject: [PATCH] Fix: property api dir_temp (#35439) * fix undefined property * rename key --- htdocs/core/class/conf.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index 7b1188f6f9a..34e1eb8ebd3 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -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");