Skip to content

Commit

Permalink
Merge pull request #24554 from totten/5.54-xdebug
Browse files Browse the repository at this point in the history
DebugSubscriber - Fix activation check
  • Loading branch information
seamuslee001 authored Sep 19, 2022
2 parents 585603f + 633dd26 commit 22e17f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Civi/API/Subscriber/DebugSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function __construct() {
break;

case '3.':
$xdebugMode = explode(',', ini_get('xdebug.mode'));
$xdebugMode = version_compare($version, '3.1', '>=')
? xdebug_info('mode') : explode(',', ini_get('xdebug.mode'));
$this->enableStats = in_array('develop', $xdebugMode);
break;

Expand Down

0 comments on commit 22e17f1

Please sign in to comment.