From 556b9ad89af80c748f0a6d6170882414c061b799 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Fri, 7 Jul 2023 09:31:34 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06532=20Fix=20"failed=20to=20open=20strea?= =?UTF-8?q?m"=20error=20on=20require=5Fonce=20approot=20in=20coreexception?= =?UTF-8?q?.class.inc.php=20Was=20occurring=20in=20TemplateFieldValueTest?= =?UTF-8?q?=20templates-base=20phpunit=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/coreexception.class.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/coreexception.class.inc.php b/core/coreexception.class.inc.php index 2e7644a5e..555d7b334 100644 --- a/core/coreexception.class.inc.php +++ b/core/coreexception.class.inc.php @@ -4,5 +4,7 @@ * * @deprecated 3.0.0 N°3663 Exception classes were moved to `/application/exceptions`, use autoloader instead of require ! */ -require_once '../approot.inc.php'; + +require_once __DIR__ . '../approot.inc.php'; + DeprecatedCallsLog::NotifyDeprecatedFile('Classes were moved to /application/exceptions');