summaryrefslogtreecommitdiffstats
path: root/application/errors/error_php.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2011-10-13 16:59:44 +0200
committerTimothy Warren <tim@timshomepage.net>2011-10-13 16:59:44 +0200
commit5600828101627a76768e4f1edbb0197d11885318 (patch)
tree4695f202a427482df8f2e867724c6e6809f12ef7 /application/errors/error_php.php
parent233b671f0f704ad75685ef9845ae9267643dd77d (diff)
Switch debug backtrace based on SHOW_ERROR_BACKTRACE contstant
Diffstat (limited to 'application/errors/error_php.php')
-rw-r--r--application/errors/error_php.php22
1 files changed, 12 insertions, 10 deletions
diff --git a/application/errors/error_php.php b/application/errors/error_php.php
index cebf91724..cf6cb9fac 100644
--- a/application/errors/error_php.php
+++ b/application/errors/error_php.php
@@ -6,14 +6,16 @@
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>
-<p>Backtrace: </p>
-<?php foreach(debug_backtrace() as $error): ?>
-<?php if(isset($error['file']) && ! stristr($error['file'], SYSDIR)): ?>
- <p>
- File: <?php echo $error['file'] ?><br />
- Line: <?php echo $error['line'] ?><br />
- Function: <?php echo $error['function'] ?>
- </p>
-<? endif ?>
-<? endforeach ?></p>
+<?php if(defined('SHOW_ERROR_BACKTRACE') && SHOW_ERROR_BACKTRACE === TRUE): ?>
+ <p>Backtrace: </p>
+ <?php foreach(debug_backtrace() as $error): ?>
+ <?php if(isset($error['file']) && ! stristr($error['file'], SYSDIR)): ?>
+ <p>
+ File: <?php echo $error['file'] ?><br />
+ Line: <?php echo $error['line'] ?><br />
+ Function: <?php echo $error['function'] ?>
+ </p>
+ <? endif ?>
+ <? endforeach ?></p>
+<?php endif ?>
</div> \ No newline at end of file