Skip to content

Commit e88fd2e

Browse files
committed
RoutingPanel: fix after #55 [Closes #61]
1 parent 843493f commit e88fd2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Bridges/ApplicationTracy/templates/RoutingPanel.panel.phtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ use Nette,
8787
</table>
8888
<?php endif ?>
8989

90-
<?php if ($source): ?><p><?php echo $source ?> in <?php echo Tracy\Helpers::editorLink($source->getFileName(), $source->getStartLine()) ?></p><?php endif ?>
90+
<?php if ($source): ?>
91+
<p><?php echo $source instanceof \ReflectionClass ? $source->getName() : $source->getDeclaringClass()->getName() . '::' . $source->getName() . '()' ?> in
92+
<?php echo Tracy\Helpers::editorLink($source->getFileName(), $source->getStartLine()) ?>
93+
</p>
94+
<?php endif ?>
9195
</div>
9296
</div>

0 commit comments

Comments
 (0)