Skip to content

Commit 276f89e

Browse files
committed
fix: Undefined variable $paths
1 parent 0d4a3cc commit 276f89e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

system/Test/bootstrap.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
defined('PUBLICPATH') || define('PUBLICPATH', realpath($source . 'public') . DIRECTORY_SEPARATOR);
5353
unset($source);
5454

55+
// LOAD OUR PATHS CONFIG FILE
56+
// Load framework paths from their config file
57+
require CONFIGPATH . 'Paths.php';
58+
$paths = new Paths();
59+
5560
// Define necessary framework path constants
5661
defined('APPPATH') || define('APPPATH', realpath(rtrim($paths->appDirectory, '\\/ ')) . DIRECTORY_SEPARATOR);
5762
defined('ROOTPATH') || define('ROOTPATH', realpath(APPPATH . '../') . DIRECTORY_SEPARATOR);
@@ -75,11 +80,6 @@
7580
* and fires up an environment-specific bootstrapping.
7681
*/
7782

78-
// LOAD OUR PATHS CONFIG FILE
79-
// Load framework paths from their config file
80-
require CONFIGPATH . 'Paths.php';
81-
$paths = new Paths();
82-
8383
// LOAD DOTENV FILE
8484
// Load environment settings from .env files into $_SERVER and $_ENV
8585
require_once $paths->systemDirectory . '/Config/DotEnv.php';

0 commit comments

Comments
 (0)