Skip to content

Commit db77587

Browse files
authored
Merge pull request #1457 from samsonasik/use-path-systemDirectory
WIP use $paths->systemDirectory in public/index.php
2 parents a4b9526 + 6e89bb6 commit db77587

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

public/index.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
1313

1414
// Location of the Paths config file.
15-
// This is the first of two lines that might need to be changed, depending on your folder structure.
15+
// This is the line that might need to be changed, depending on your folder structure.
1616
$pathsPath = FCPATH . '../application/Config/Paths.php';
1717

1818
/*
@@ -32,8 +32,7 @@
3232
$paths = new Config\Paths();
3333

3434
// Location of the framework bootstrap file.
35-
// This is the second of two lines that might need to be changed, depending on your folder structure.
36-
$app = require FCPATH . '../system/bootstrap.php';
35+
$app = require FCPATH . '../' . rtrim($paths->systemDirectory, '/ ') . '/bootstrap.php';
3736

3837
/*
3938
*---------------------------------------------------------------

0 commit comments

Comments
 (0)