clean up public/index.php : remove unneeded $pathsPath var

This commit is contained in:
Abdul Malik Ikhsan 2020-10-11 16:03:14 +07:00
parent 59972fb270
commit 67fb7cb355
No known key found for this signature in database
GPG Key ID: 23FCCC74D1442CAE

View File

@ -11,11 +11,6 @@ unset($minPHPVersion);
// Path to the front controller (this file)
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
// Location of the Paths config file.
// This is the line that might need to be changed, depending on your folder structure.
$pathsPath = realpath(FCPATH . '../app/Config/Paths.php') ?: FCPATH . '../app/Config/Paths.php';
// ^^^ Change this if you move your application folder
/*
*---------------------------------------------------------------
* BOOTSTRAP THE APPLICATION
@ -29,7 +24,10 @@ $pathsPath = realpath(FCPATH . '../app/Config/Paths.php') ?: FCPATH . '../app/Co
chdir(__DIR__);
// Load our paths config file
require $pathsPath;
// This is the line that might need to be changed, depending on your folder structure.
require realpath(FCPATH . '../app/Config/Paths.php') ?: FCPATH . '../app/Config/Paths.php';
// ^^^ Change this if you move your application folder
$paths = new Config\Paths();
// Location of the framework bootstrap file.