Tweaks to bug reporting

This commit is contained in:
mattpass
2020-08-23 09:28:03 +01:00
parent 53cdbad35b
commit cd352c8a0c
2 changed files with 3 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ if ("error" !== $result) {
// Close file
fclose($f);
// OK, now we have bug lines to output, save to our file
// OK, now we have bug lines to output, concat onto output
$output = rtrim(str_replace("\r\n", "\n", $output));
$output = explode("\n", $output);
$output = array_slice($output, -$maxLines);
@@ -93,6 +93,7 @@ if ("error" !== $result) {
}
// Save all output to the bug report file
if (0 < $filesWithNewBugs) {
$settingsClass->serializedFileData("set", $docRoot . $ICEcoderDir . "/data/bug-report.php", serialize($output));
}