Skip to content
Snippets Groups Projects
Commit 48fc113e authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Bug fix: only enable tideways when configured to do so. (#1035)

- A logic problem caused tideways profiling to be always enabled if the extension was loaded
parent 765af15d
No related merge requests found
......@@ -5,12 +5,14 @@ use Zend\Mvc\Service\ServiceManagerConfig;
// If the XHProf profiler is enabled, set it up now:
$xhprof = getenv('VUFIND_PROFILER_XHPROF');
if (!empty($xhprof) && extension_loaded('xhprof')) {
xhprof_enable();
} else if (extension_loaded('tideways')) {
tideways_enable();
} else {
$xhprof = false;
if (!empty($xhprof)) {
if (extension_loaded('xhprof')) {
xhprof_enable();
} else if (extension_loaded('tideways')) {
tideways_enable();
} else {
$xhprof = false;
}
}
// Define path to application directory
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment