From 72c502d94af317a24b715975e553721278c445c6 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Sun, 11 Jun 2023 14:26:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20=D0=B2=D0=BD=D1=83?= =?UTF-8?q?=D1=82=D1=80=D0=B8=20=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=B9=20=D1=82=D0=BE=D0=B6=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _incl_data/autoload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_incl_data/autoload.php b/_incl_data/autoload.php index 55f7e9ac..9a639dfb 100644 --- a/_incl_data/autoload.php +++ b/_incl_data/autoload.php @@ -9,7 +9,7 @@ require_once 'mysql_override.php'; require_once 'class/Insallah/Config.php'; spl_autoload_register(function (string $className) { - $rootdir = getcwd() . '/_incl_data'; + $rootdir = $_SERVER['DOCUMENT_ROOT'] . '/_incl_data'; # 1 with namespaces # 2 without $fileName = [ @@ -25,7 +25,7 @@ spl_autoload_register(function (string $className) { }); spl_autoload_register(function (string $classname) { - $rootdir = getcwd() . '/_incl_data'; + $rootdir = $_SERVER['DOCUMENT_ROOT'] . '/_incl_data'; $classMap = [ 'NewCombats' => $rootdir . '/class/', 'Insallah' => $rootdir . '/class/Insallah/',