mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#11473 fixed redirect installer when config.php not exist
This commit is contained in:
parent
11a8bd688d
commit
9269ef85d3
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user