Skip to content

Commit

Permalink
Optimized the error view, there is no sense in calling Kohana::debug(…
Browse files Browse the repository at this point in the history
…) for single args
  • Loading branch information
Woody Gilk committed Aug 7, 2009
1 parent 623b0c4 commit 1fdd245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/kohana/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function koggle(elem)
<?php foreach ($step['args'] as $name => $arg): ?>
<tr>
<td><code><?php echo $name ?></code></td>
<td><?php echo Kohana::debug($arg) ?></td>
<td><pre><?php echo Kohana::dump($arg) ?></pre></td>
</tr>
<?php endforeach ?>
</table>
Expand Down Expand Up @@ -117,7 +117,7 @@ function koggle(elem)
<?php foreach ($GLOBALS[$var] as $key => $value): ?>
<tr>
<td><code><?php echo $key ?></code></td>
<td><code><?php echo Kohana::dump($value) ?></code></td>
<td><pre><?php echo Kohana::dump($value) ?></pre></td>
</tr>
<?php endforeach ?>
</table>
Expand Down

0 comments on commit 1fdd245

Please sign in to comment.