diff --git a/pandora_console/index.php b/pandora_console/index.php index aaf960eb91..a1304963c1 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -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. */