[FrameworkBundle] fixed exception templates

This commit is contained in:
Fabien Potencier 2010-08-20 13:11:49 +02:00
parent d5a61e3bc5
commit f92accb9b7
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
<?php if ($trace['function']): ?>
at <strong><?php echo $trace['class'] ?><?php echo $trace['type'] ?><?php echo $trace['function'] ?></strong>(<?php echo $view->code->formatArgs($trace['args']) ?>)<br />
at <strong><?php echo $trace['class'] ?><?php echo $trace['type'] ?><?php echo $trace['function'] ?></strong>(<?php echo $view['code']->formatArgs($trace['args']) ?>)<br />
<?php endif; ?>
<?php if ($trace['file'] && $trace['line']): ?>
in <em><?php echo $view->code->formatFile($trace['file'], $trace['line']) ?></em> line <?php echo $trace['line'] ?>
in <em><?php echo $view['code']->formatFile($trace['file'], $trace['line']) ?></em> line <?php echo $trace['line'] ?>
<a href="#" onclick="toggle('trace_<?php echo $i ?>'); return false;">...</a><br />
<ul class="code" id="trace_<?php echo $i ?>" style="display: <?php echo 0 === $i ? 'block' : 'none' ?>">
<?php echo $view->code->fileExcerpt($trace['file'], $trace['line']) ?>
<?php echo $view['code']->fileExcerpt($trace['file'], $trace['line']) ?>
</ul>
<?php endif; ?>

View File

@ -1,5 +1,5 @@
<?php if ($trace['function']): ?>
at <?php echo $trace['class'].$trace['type'].$trace['function'] ?>(<?php echo $view->code->formatArgs($trace['args']) ?>)
at <?php echo $trace['class'].$trace['type'].$trace['function'] ?>(<?php echo $view['code']->formatArgs($trace['args']) ?>)
<?php else: ?>
at n/a
<?php endif; ?>