diff --git a/ci.php b/ci.php index caf1e3d676de..01b74be76479 100755 --- a/ci.php +++ b/ci.php @@ -12,13 +12,6 @@ * this class mainly acts as a passthru to the framework itself. */ -// Location to the Paths config file. -$pathsPath = 'application/Config/Paths.php'; -$public = trim($paths->publicDirectory, '/'); - -// Path to the front controller -define('FCPATH', realpath($public).DIRECTORY_SEPARATOR); - /* *--------------------------------------------------------------- * BOOTSTRAP THE APPLICATION @@ -34,6 +27,14 @@ die("The cli tool is not supported when running php-cgi. It needs php-cli to function!\n\n"); } +// Location to the Paths config file. +$pathsPath = 'application/Config/Paths.php'; + +$public = trim($paths->publicDirectory, '/'); + +// Path to the front controller +define('FCPATH', realpath($public).DIRECTORY_SEPARATOR); + // Ensure the current directory is pointing to the front controller's directory chdir('public');