From 9c54901345389d5aff18a294525cadef1a181a29 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 19 Feb 2024 10:07:25 +0900 Subject: [PATCH] fix: Undefined variable $paths --- system/Test/bootstrap.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/Test/bootstrap.php b/system/Test/bootstrap.php index 470c3be5909f..08c6b2e52519 100644 --- a/system/Test/bootstrap.php +++ b/system/Test/bootstrap.php @@ -52,6 +52,11 @@ defined('PUBLICPATH') || define('PUBLICPATH', realpath($source . 'public') . DIRECTORY_SEPARATOR); unset($source); +// LOAD OUR PATHS CONFIG FILE +// Load framework paths from their config file +require CONFIGPATH . 'Paths.php'; +$paths = new Paths(); + // Define necessary framework path constants defined('APPPATH') || define('APPPATH', realpath(rtrim($paths->appDirectory, '\\/ ')) . DIRECTORY_SEPARATOR); defined('ROOTPATH') || define('ROOTPATH', realpath(APPPATH . '../') . DIRECTORY_SEPARATOR); @@ -75,11 +80,6 @@ * and fires up an environment-specific bootstrapping. */ -// LOAD OUR PATHS CONFIG FILE -// Load framework paths from their config file -require CONFIGPATH . 'Paths.php'; -$paths = new Paths(); - // LOAD DOTENV FILE // Load environment settings from .env files into $_SERVER and $_ENV require_once $paths->systemDirectory . '/Config/DotEnv.php';