Skip to content

Commit

Permalink
Revert "SessionPanel: uses Tracy 2.6 snapshot"
Browse files Browse the repository at this point in the history
This reverts commit e1064c0.
  • Loading branch information
dg committed Feb 27, 2019
1 parent fc4c4e3 commit f8031df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"require-dev": {
"nette/di": "^v3.0",
"nette/tester": "^2.0",
"tracy/tracy": "^2.6"
"tracy/tracy": "^2.4"
},
"conflict": {
"nette/nette": "<2.2"
Expand Down
6 changes: 1 addition & 5 deletions src/Bridges/HttpTracy/templates/SessionPanel.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ namespace Nette\Bridges\HttpTracy;

use Tracy\Dumper;

$snapshot = [];

?>
<style class="tracy-debug">
#tracy-debug .nette-SessionPanel-parameters pre {
Expand All @@ -32,10 +30,8 @@ $snapshot = [];
} elseif ($k === '_tracy') {
continue;
}
echo '<tr><th>', htmlspecialchars((string) $k, ENT_IGNORE, 'UTF-8'), '</th><td>', Dumper::toHtml($v, [Dumper::SNAPSHOT => &$snapshot]), "</td></tr>\n";
echo '<tr><th>', htmlspecialchars((string) $k, ENT_IGNORE, 'UTF-8'), '</th><td>', Dumper::toHtml($v, [Dumper::LIVE => true]), "</td></tr>\n";
}?>
</table>
<?php endif ?>

<meta itemprop=tracy <?= Dumper::formatSnapshotAttribute($snapshot) ?>>
</div>

0 comments on commit f8031df

Please sign in to comment.