summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-07-04 19:39:28 -0400
committerScott Ullrich <sullrich@gmail.com>2011-07-04 19:39:28 -0400
commiteac584f3b61de3513baf54633d9a9b854ff6eb03 (patch)
treef5ceb3d82b9cd88d04ccec43700889b9f315f044 /usr/local/www/index.php
parent6f385195612e5d5aaa9b870c293f81692785cd47 (diff)
downloadpfsense-eac584f3b61de3513baf54633d9a9b854ff6eb03.zip
pfsense-eac584f3b61de3513baf54633d9a9b854ff6eb03.tar.gz
Revert "Add php errors (non warnings) to the crash reporter"
This reverts commit cb61dad8ab812a3740648dc0e3f4b74959713ef3.
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 2b9be16..92376e5 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -58,13 +58,8 @@ require_once('notices.inc');
if($g['disablecrashreporter'] != true) {
// Check to see if we have a crash report
- $x = 0;
- if(file_exists("/tmp/PHP_errors.log")) {
- $total = `/bin/cat /tmp/PHP_errors.log | /usr/bin/grep -vi warning | wc -l | awk '{ print $1 }'`;
- if($total > 0)
- $x++;
- }
$crash = glob("/var/crash/*");
+ $x = 0;
$skip_files = array(".", "..", "minfree", "");
if(is_array($crash)) {
foreach($crash as $c) {
@@ -72,7 +67,7 @@ if($g['disablecrashreporter'] != true) {
$x++;
}
if($x > 0)
- $savemsg = "{$g['product_name']} has detected a crash report or programming bug. Click <a href='crash_reporter.php'>here</a> for more information.";
+ $savemsg = "{$g['product_name']} has detected a crash report. Click <a href='crash_reporter.php'>here</a> for more information.";
}
}
OpenPOWER on IntegriCloud