From a2db88ee389b4f82e14b4d3b3d399703f0a5f056 Mon Sep 17 00:00:00 2001 From: absurdo Date: Tue, 12 Dec 2023 21:33:06 +0100 Subject: [PATCH 1/2] Added support for load autoload from actual directory --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 1a54313..efc3c6f 100644 --- a/index.php +++ b/index.php @@ -21,7 +21,7 @@ include('libraries/Routes.php'); });*/ -if(is_file('vendor/autoload.php')) { +if(is_file(__DIR__.'/vendor/autoload.php')) { include('vendor/autoload.php'); From e63812141f9ad9c6d04c63f354c3a9145e4b51b5 Mon Sep 17 00:00:00 2001 From: absurdo Date: Tue, 12 Dec 2023 21:33:36 +0100 Subject: [PATCH 2/2] Added support for load autoload from actual directory --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index efc3c6f..b5ef054 100644 --- a/index.php +++ b/index.php @@ -23,7 +23,7 @@ include('libraries/Routes.php'); if(is_file(__DIR__.'/vendor/autoload.php')) { - include('vendor/autoload.php'); + include(__DIR__.'/vendor/autoload.php'); }