Permalink
Browse files

Renamed constant, added 10px margin to backtrace

  • Loading branch information...
1 parent 8bf0038 commit 5160cc9a869e27a696f93f64127eef15c54f5d64 @timw4mail timw4mail committed Oct 18, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 application/config/constants.php
  2. +2 −2 application/errors/error_php.php
View
2 application/config/constants.php
@@ -46,7 +46,7 @@
| of this setting
|
*/
-define('SHOW_ERROR_BACKTRACE', TRUE);
+define('SHOW_DEBUG_BACKTRACE', TRUE);
/* End of file constants.php */
View
4 application/errors/error_php.php
@@ -7,13 +7,13 @@
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>
-<?php if(defined('SHOW_ERROR_BACKTRACE') && SHOW_ERROR_BACKTRACE === TRUE): ?>
+<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
<p>Backtrace: </p>
<?php foreach(debug_backtrace() as $error): ?>
<?php if(isset($error['file']) && ! stristr($error['file'], SYSDIR)): ?>
- <p>
+ <p style="margin-left:10px">
File: <?php echo $error['file'] ?><br />
Line: <?php echo $error['line'] ?><br />
Function: <?php echo $error['function'] ?>

0 comments on commit 5160cc9

Please sign in to comment.