summaryrefslogtreecommitdiffstats
path: root/application/errors/error_php.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-05-16 14:06:22 +0200
committerAndrey Andreev <narf@bofh.bg>2012-05-16 14:06:22 +0200
commitf4f9f787082e45c04a8d007450d9151f5a068732 (patch)
treecbdc6064112932f08cc3303d6c17474b8d8f6da4 /application/errors/error_php.php
parent242925bc084e4d606d5f34bdb49bdf9f5235ec32 (diff)
parent04d4091dfa551475998c351e09858e5ebdcf4482 (diff)
Merge pull request #1359 from sourcejedi/backtrace-filter-fix
fix backtrace filtering
Diffstat (limited to 'application/errors/error_php.php')
-rw-r--r--application/errors/error_php.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/application/errors/error_php.php b/application/errors/error_php.php
index 3855720de..b76dc8a9e 100644
--- a/application/errors/error_php.php
+++ b/application/errors/error_php.php
@@ -40,12 +40,15 @@
<p>Backtrace: </p>
<?php foreach(debug_backtrace() as $error): ?>
- <?php if(isset($error['file']) && ! stristr($error['file'], SYSDIR)): ?>
+ <?php if(isset($error['file']) &&
+ strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
+
<p style="margin-left:10px">
File: <?php echo $error['file'] ?><br />
Line: <?php echo $error['line'] ?><br />
Function: <?php echo $error['function'] ?>
</p>
+
<?php endif ?>
<?php endforeach ?></p>