Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 42c0517

Browse files
committed
Fix startTracker() connection execute
1 parent 9ae5998 commit 42c0517

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ggrachdev.debugbar/include.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
use \Bitrix\Main\Page\Asset;
44

5-
global $ggrachTracker;
6-
7-
$connection = \Bitrix\Main\Application::getConnection();
8-
$ggrachTracker = $connection->startTracker();
9-
105
// Корневая папка модуля
116
$ggrachDebuggerRootPath = str_replace($_SERVER['DOCUMENT_ROOT'], '', __DIR__ . '/..');
127

@@ -71,6 +66,11 @@ function DD(...$data) {
7166

7267
if (\GGrach\BitrixDebugger\Validator\ShowModeDebuggerValidator::needShowInDebugBar(DD()->getConfiguratorDebugger())) {
7368

69+
global $ggrachTracker;
70+
71+
$connection = \Bitrix\Main\Application::getConnection();
72+
$ggrachTracker = $connection->startTracker();
73+
7474
Asset::getInstance()->addJs($ggrachDirJs . "/Index.js");
7575
Asset::getInstance()->addJs($ggrachDirJs . "/DebugBar.js");
7676
Asset::getInstance()->addJs($ggrachDirJs . "/User.js");

0 commit comments

Comments
 (0)