#11473 fixed redirect installer when config.php not exist

This commit is contained in:
Daniel Cebrian 2023-06-06 12:18:35 +02:00
parent 11a8bd688d
commit 9269ef85d3

View File

@ -32,16 +32,6 @@ if (defined('__PAN_XHPROF__') === false) {
define('__PAN_XHPROF__', 0);
}
require 'vendor/autoload.php';
if (__PAN_XHPROF__ === 1) {
if (function_exists('tideways_xhprof_enable') === true) {
tideways_xhprof_enable();
} else {
error_log('Cannot find tideways_xhprof_enable function');
}
}
// Needed for InfoBox count.
if (isset($_SESSION['info_box_count']) === true) {
$_SESSION['info_box_count'] = 0;
@ -142,6 +132,16 @@ if ((file_exists('include/config.php') === false)
exit;
}
require 'vendor/autoload.php';
if (__PAN_XHPROF__ === 1) {
if (function_exists('tideways_xhprof_enable') === true) {
tideways_xhprof_enable();
} else {
error_log('Cannot find tideways_xhprof_enable function');
}
}
/*
* DO NOT CHANGE ORDER OF FOLLOWING REQUIRES.
*/