From f9dd70ad278a787d18e923ee18766229fa64d764 Mon Sep 17 00:00:00 2001 From: drigato Date: Wed, 10 Jun 2015 15:38:27 -0400 Subject: [PATCH] Fix for incorrectly displaying the installer screen --- airtime_mvc/public/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/index.php b/airtime_mvc/public/index.php index 02fc19e65..dac3e5fd4 100644 --- a/airtime_mvc/public/index.php +++ b/airtime_mvc/public/index.php @@ -54,8 +54,11 @@ if (array_key_exists('config', $_GET)) { showConfigCheckPage(); } +$filename = isset($_SERVER['AIRTIME_CONF']) ? + $_SERVER['AIRTIME_CONF'] : AIRTIME_CONFIG_STOR . AIRTIME_CONFIG; + // If a configuration file exists, forward to our boot script -if (file_exists(AIRTIME_CONFIG_STOR . AIRTIME_CONFIG)) { +if (file_exists($filename)) { require_once(APPLICATION_PATH . 'airtime-boot.php'); } // Otherwise, we'll need to run our configuration setup