Skip to content

Commit

Permalink
Timing::getTrace() enhanced to render paths with DebugPanel::getTrace…
Browse files Browse the repository at this point in the history
…Line() method
  • Loading branch information
SilverFire committed Mar 28, 2017
1 parent 9388e48 commit 36fb734
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/debug/Timing.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

class Timing
{
/**
* @var DebugPanel
*/
protected $panel;

protected $logId;
Expand Down Expand Up @@ -90,7 +93,7 @@ public function getTrace()
$result .= Html::ul($this->traces, [
'class' => 'trace',
'item' => function ($trace) {
return "<li>{$trace['file']}({$trace['line']})</li>";
return "<li>" . $this->panel->getTraceLine($trace) . "</li>";
},
]);
}
Expand Down

0 comments on commit 36fb734

Please sign in to comment.