mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
system: simplify/unify previous
This commit is contained in:
parent
0a74256241
commit
ef515f925a
@ -144,10 +144,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
}
|
||||
if ($count || (!empty($desc) && !empty($email))) {
|
||||
$files_to_upload = glob('/var/crash/*');
|
||||
foreach ($files_to_upload as $key => $file) {
|
||||
if (filesize($file) > 450000) {
|
||||
unset($files_to_upload[$key]);
|
||||
@unlink($file);
|
||||
foreach ($files_to_upload as $file_to_upload) {
|
||||
if (filesize($file_to_upload) > 450000) {
|
||||
@unlink($file_to_upload);
|
||||
}
|
||||
}
|
||||
file_put_contents('/var/crash/crashreport_header.txt', $crash_report_header);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user