Fixed an issue where the boostrap file redirects infinitely to /install.php

This commit is contained in:
Haydar Ciftci 2013-11-28 14:51:08 +01:00
parent 12cca9c93c
commit 3abf806428

2
bootstrap.php Normal file → Executable file
View file

@ -27,7 +27,7 @@ $autoload = function ($class) {
spl_autoload_register($autoload, true, true);
if (!file_exists(dirname(__FILE__) . '/PHPCI/config.yml') && (!defined('PHPCI_IS_CONSOLE') || !PHPCI_IS_CONSOLE)) {
if (!file_exists(dirname(__FILE__) . '/PHPCI/config.yml') && (!defined('PHPCI_IS_CONSOLE') || !PHPCI_IS_CONSOLE) && $_SERVER['PHP_SELF'] != '/install.php') {
header('Location: install.php');
die;
}