Skip to content

Commit

Permalink
Merge pull request #90 from madhuracj/php
Browse files Browse the repository at this point in the history
Show line number and location for php errors. Script name counts does not make sense for php errors.
  • Loading branch information
nijel committed Jul 16, 2015
2 parents 3404b8d + fca1332 commit a6b36b8
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions src/Template/Reports/view.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,25 @@
?>
</td>
</tr>
<tr>
<td>Script Name</td>
<td>
<?php echo $this->Reports->entriesFromIncidents(
$related_entries["script_name"], $script_name_distinct_count, "script_name");
?>
</td>
</tr>
<?php if ($incidents[0]["exception_type"] == 1) { // php ?>
<tr>
<td>Location</td>
<td><?php echo $report[0]["location"]; ?></td>
</tr>
<tr>
<td>Line Number</td>
<td><?php echo $report[0]["linenumber"]; ?></td>
</tr>
<?php } else { ?>
<tr>
<td>Script Name</td>
<td>
<?php echo $this->Reports->entriesFromIncidents(
$related_entries["script_name"], $script_name_distinct_count, "script_name");
?>
</td>
</tr>
<?php } ?>
<tr>
<td>Configuration Storage</td>
<td>
Expand Down

0 comments on commit a6b36b8

Please sign in to comment.