Skip to content

Commit

Permalink
fix view trace
Browse files Browse the repository at this point in the history
  • Loading branch information
lotfio committed May 25, 2020
1 parent 14cdb5a commit 4e105a2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Ouch/resources/views/500.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@

<?php $i = 1; foreach ($ex->trace as $tr) { ?>

<div class="panel exp-panel" id="exp-<?=$i?>">
<div class="panel-body">
<code><?=htmlentities(readErrorLine($tr['file'], $tr['line']), ENT_QUOTES, 'UTF-8')?></code>
<p><?=$tr['file']?></p>
</div>
</div>
<?php if (array_key_exists('file', $tr)): ?>
<div class="panel exp-panel" id="exp-<?=$i?>">
<div class="panel-body">
<code><?=htmlentities(readErrorLine($tr['file'], $tr['line']), ENT_QUOTES, 'UTF-8')?></code>
<p><?=$tr['file']?></p>
</div>
</div>
<?php endif;?>

<?php $i++; } ?>

Expand Down

0 comments on commit 4e105a2

Please sign in to comment.