Skip to content

Commit 8ab4cc2

Browse files
committed
moved tracy start from startup.php to framework.php - problem with AJAX tracy vs. session start
1 parent 379f7be commit 8ab4cc2

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

vqmod/xml/tracy.xml

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,6 @@
55
<vqmver required="true">2.6.0</vqmver>
66
<author>Michal Landsman</author>
77

8-
<file path="system/startup.php">
9-
<operation info="bring tracy">
10-
<search position="before">
11-
<![CDATA[function library($class) {]]>
12-
</search>
13-
<add>
14-
<![CDATA[
15-
if(defined('DEV') && true == DEV) {
16-
17-
Tracy\Debugger::enable(Tracy\Debugger::DEVELOPMENT, DIR_LOGS);
18-
Tracy\Debugger::$strictMode = TRUE;
19-
20-
if(defined('DEV_EMAIL')) {
21-
Tracy\Debugger::$email = DEV_EMAIL;
22-
}
23-
24-
// register opencart panels
25-
$panels = new TracyPanel\Plugin();
26-
}
27-
]]>
28-
</add>
29-
</operation>
30-
</file>
31-
328
<file path="system/engine/loader.php">
339
<operation info="log templates">
3410
<search position="after">
@@ -37,7 +13,8 @@
3713
<add>
3814
<![CDATA[
3915
$_SESSION['_tracy']['templates_log'][] = $route;
40-
//$output = '<span data-type="suggestions" data-template="'.$route.'" >' . $output . '</span>';
16+
// todo: think about this for future - some javascript tooltips
17+
// $output = '<span data-type="suggestions" data-template="'.$route.'" >' . $output . '</span>';
4118
]]>
4219
</add>
4320
</operation>
@@ -90,6 +67,27 @@
9067
]]>
9168
</add>
9269
</operation>
70+
<operation info="bring tracy">
71+
<search position="after">
72+
<![CDATA[$session = new Session();]]>
73+
</search>
74+
<add>
75+
<![CDATA[
76+
if(defined('DEV') && true == DEV) {
77+
78+
Tracy\Debugger::enable(Tracy\Debugger::DEVELOPMENT, DIR_LOGS);
79+
Tracy\Debugger::$strictMode = TRUE;
80+
81+
if(defined('DEV_EMAIL')) {
82+
Tracy\Debugger::$email = DEV_EMAIL;
83+
}
84+
85+
// register opencart panels
86+
$panels = new TracyPanel\Plugin();
87+
}
88+
]]>
89+
</add>
90+
</operation>
9391
</file>
9492

9593
<file path="system/library/db.php">

0 commit comments

Comments
 (0)