Browse Source

bring back missing exception callstack display.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
dea65efd04
  1. 4
      framework/yii/views/errorHandler/exception.php

4
framework/yii/views/errorHandler/exception.php

@ -366,9 +366,9 @@ pre .diff .change{
<div class="call-stack"> <div class="call-stack">
<ul> <ul>
<?php echo $handler->renderCallStackItem($exception->getFile(), $exception->getLine(), null, null, 1); ?> <?php echo $handler->renderCallStackItem($exception->getFile(), $exception->getLine(), null, null, 1); ?>
<?php for ($i = 1, $trace = $exception->getTrace(), $length = count($trace); $i < $length; ++$i): ?> <?php for ($i = 0, $trace = $exception->getTrace(), $length = count($trace); $i < $length; ++$i): ?>
<?php echo $handler->renderCallStackItem(@$trace[$i]['file'] ?: null, @$trace[$i]['line'] ?: null, <?php echo $handler->renderCallStackItem(@$trace[$i]['file'] ?: null, @$trace[$i]['line'] ?: null,
@$trace[$i]['class'] ?: null, @$trace[$i]['function'] ?: null, $i + 1); ?> @$trace[$i]['class'] ?: null, @$trace[$i]['function'] ?: null, $i + 2); ?>
<?php endfor; ?> <?php endfor; ?>
</ul> </ul>
</div> </div>

Loading…
Cancel
Save