summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2011-10-18 12:27:31 +0200
committerTimothy Warren <tim@timshomepage.net>2011-10-18 12:27:31 +0200
commitd609a59ab5f30bc0ee0d9d5b619a1201fef59461 (patch)
treef3b1fd3369ec5bf0afe1f79e38e7c6f1678ed127 /application
parent9a902cb3b9cb9e6133c42aa047f410ed4f6dcdf1 (diff)
Minor formatting changes
Diffstat (limited to 'application')
-rw-r--r--application/config/constants.php2
-rw-r--r--application/errors/error_php.php19
2 files changed, 13 insertions, 8 deletions
diff --git a/application/config/constants.php b/application/config/constants.php
index fcf1aae89..f41f86b74 100644
--- a/application/config/constants.php
+++ b/application/config/constants.php
@@ -41,7 +41,7 @@ define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
| Display Debug backtrace
|--------------------------------------------------------------------------
|
-| If set to true, a backtrace will be displayed along with php errors. If
+| If set to TRUE, a backtrace will be displayed along with php errors. If
| error_reporting is disabled, the backtrace will not display, regardless
| of this setting
|
diff --git a/application/errors/error_php.php b/application/errors/error_php.php
index cf6cb9fac..f2f71857f 100644
--- a/application/errors/error_php.php
+++ b/application/errors/error_php.php
@@ -6,16 +6,21 @@
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></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 ?>
+
+ <?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