From 1c4eebc4010ca0d240aea56c81ffb4bc1261b5f4 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Wed, 16 Apr 2014 16:45:14 +0100 Subject: [PATCH] Fixing redirect to install.php --- bootstrap.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 4f3e8a67..ee819c49 100755 --- a/bootstrap.php +++ b/bootstrap.php @@ -33,9 +33,8 @@ $autoload = function ($class) { spl_autoload_register($autoload, true, true); -if (!file_exists(dirname(__FILE__) . '/PHPCI/config.yml') && (!defined('PHPCI_IS_CONSOLE') || !PHPCI_IS_CONSOLE) && substr($_SERVER['PHP_SELF'], -12) != '/install.php') { - header('Location: install.php'); - die; +if (!file_exists(dirname(__FILE__) . '/PHPCI/config.yml') && (!defined('PHPCI_IS_CONSOLE') || !PHPCI_IS_CONSOLE)) { + die('PHPCI has not yet been installed - Please use the command ./console phpci:install to install it.'); } if (!file_exists(dirname(__FILE__) . '/vendor/autoload.php') && defined('PHPCI_IS_CONSOLE') && PHPCI_IS_CONSOLE) {