Skip to content

Commit

Permalink
fix: Undefined variable $paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 19, 2024
1 parent ecb93d8 commit 9c54901
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions system/Test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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';
Expand Down

0 comments on commit 9c54901

Please sign in to comment.