Skip to content

Commit

Permalink
moved tracy start from startup.php to framework.php - problem with AJ…
Browse files Browse the repository at this point in the history
…AX tracy vs. session start
  • Loading branch information
landsman committed Jun 7, 2017
1 parent 379f7be commit 8ab4cc2
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions vqmod/xml/tracy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,6 @@
<vqmver required="true">2.6.0</vqmver>
<author>Michal Landsman</author>

<file path="system/startup.php">
<operation info="bring tracy">
<search position="before">
<![CDATA[function library($class) {]]>
</search>
<add>
<![CDATA[
if(defined('DEV') && true == DEV) {
Tracy\Debugger::enable(Tracy\Debugger::DEVELOPMENT, DIR_LOGS);
Tracy\Debugger::$strictMode = TRUE;
if(defined('DEV_EMAIL')) {
Tracy\Debugger::$email = DEV_EMAIL;
}
// register opencart panels
$panels = new TracyPanel\Plugin();
}
]]>
</add>
</operation>
</file>

<file path="system/engine/loader.php">
<operation info="log templates">
<search position="after">
Expand All @@ -37,7 +13,8 @@
<add>
<![CDATA[
$_SESSION['_tracy']['templates_log'][] = $route;
//$output = '<span data-type="suggestions" data-template="'.$route.'" >' . $output . '</span>';
// todo: think about this for future - some javascript tooltips
// $output = '<span data-type="suggestions" data-template="'.$route.'" >' . $output . '</span>';
]]>
</add>
</operation>
Expand Down Expand Up @@ -90,6 +67,27 @@
]]>
</add>
</operation>
<operation info="bring tracy">
<search position="after">
<![CDATA[$session = new Session();]]>
</search>
<add>
<![CDATA[
if(defined('DEV') && true == DEV) {
Tracy\Debugger::enable(Tracy\Debugger::DEVELOPMENT, DIR_LOGS);
Tracy\Debugger::$strictMode = TRUE;
if(defined('DEV_EMAIL')) {
Tracy\Debugger::$email = DEV_EMAIL;
}
// register opencart panels
$panels = new TracyPanel\Plugin();
}
]]>
</add>
</operation>
</file>

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

0 comments on commit 8ab4cc2

Please sign in to comment.