diff --git a/spark b/spark index 087964bfc8a9..c2e97ea0c6e5 100755 --- a/spark +++ b/spark @@ -40,7 +40,7 @@ $public = trim($paths->publicDirectory, '/'); define('FCPATH', realpath($public).DIRECTORY_SEPARATOR); // Ensure the current directory is pointing to the front controller's directory -chdir('public'); +chdir($public); $app = require rtrim($paths->systemDirectory,'/ ').'/bootstrap.php';